# requestSubscriptionsStatus

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

Request a list of purchased subscription status. This API will work with Google store.

For the status code, refer to the following document : https://docs.nhncloud.com/en/TOAST/en/toast-sdk/iap-android/#iapsubscriptionstatusstatuscode

Example Usage:

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

Content copied to clipboard

#### Since

Added 2.46.0.

#### Parameters

activity

current Activity.

configuration

sets additional conditions for retrieving results.

callback

callback pass to API result.

#### See also

PurchasableSubscriptionStatus
GamebaseDataCallback