# requestActivatedPurchases

open fun requestActivatedPurchases(@NonNull activity: Activity, @NonNull configuration: PurchasableConfiguration, @NonNull callback: GamebaseDataCallback<List<PurchasableReceipt>>)

Request a list of payment products that are currently subscribed. If there is a subscription purchased from another platform (such as iOS), the itemSeq value is returned as -1.

Example Usage:

    final PurchasableConfiguration configuration = PurchasableConfiguration.newBuilder().build();
    Gamebase.Purchase.requestActivatedPurchases(activity, configuration, new GamebaseDataCallback<List<PurchasableReceipt>>() {
        @Override
        public void onCallback(List<PurchasableReceipt> data, GamebaseException exception) {
            if (Gamebase.isSuccess(exception)) {
                // succeeded.
            } else {
                // failed.
            }
        }
    });

Content copied to clipboard

#### Since

Added 2.45.0.

#### Parameters

activity

current Activity.

configuration

sets additional conditions for retrieving results.

callback

callback pass to API result.

#### See also

PurchasableConfiguration
PurchasableReceipt
GamebaseDataCallback

open fun requestActivatedPurchases(@NonNull activity: Activity, @NonNull callback: GamebaseDataCallback<List<PurchasableReceipt>>)

### Deprecated

Request a list of payment products that are currently subscribed. If there is a subscription purchased from another platform (such as iOS), the itemSeq value is returned as -1.

#### Since

Added 2.6.0.

#### Deprecated

As of release 2.45.0, use requestActivatedPurchases method instead.

#### Parameters

activity

current Activity.

callback

callback pass to API result.

#### See also

PurchasableReceipt
GamebaseDataCallback