# Purchase

class Purchase

This class provides wrapping of function execution related to payment.

## Constructors

Purchase
Link copied to clipboard
constructor()

## Functions

getStoreCode
Link copied to clipboard
open fun getStoreCode(): String
Gets the store code of the current app.
requestActivatedPurchases
Link copied to clipboard
open fun requestActivatedPurchases(@NonNull activity: Activity, @NonNull callback: GamebaseDataCallback<List<PurchasableReceipt>>)
open fun requestActivatedPurchases(@NonNull activity: Activity, @NonNull configuration: PurchasableConfiguration, @NonNull callback: GamebaseDataCallback<List<PurchasableReceipt>>)
Request a list of payment products that are currently subscribed.
requestItemListAtIAPConsole
Link copied to clipboard
open fun requestItemListAtIAPConsole(@NonNull activity: Activity, @NonNull callback: GamebaseDataCallback<List<PurchasableItem>>)
Request a item list which is purchasable.
requestItemListOfNotConsumed
Link copied to clipboard
open fun requestItemListOfNotConsumed(@NonNull activity: Activity, @NonNull callback: GamebaseDataCallback<List<PurchasableReceipt>>)
open fun requestItemListOfNotConsumed(@NonNull activity: Activity, @NonNull configuration: PurchasableConfiguration, @NonNull callback: GamebaseDataCallback<List<PurchasableReceipt>>)
Request a Item List which is not consumed.
requestItemListPurchasable
Link copied to clipboard
open fun requestItemListPurchasable(@NonNull activity: Activity, @NonNull callback: GamebaseDataCallback<List<PurchasableItem>>)
Request a item list which is purchasable.
requestPurchase
Link copied to clipboard
open fun requestPurchase(@NonNull activity: Activity, @NonNull gamebaseProductId: String, @NonNull callback: GamebaseDataCallback<PurchasableReceipt>)
open fun requestPurchase(@NonNull activity: Activity, @NonNull gamebaseProductId: String, @NonNull payload: String, @NonNull callback: GamebaseDataCallback<PurchasableReceipt>)
Request Purchasing Item registered in the console with the gamebaseProductId.
open fun requestPurchase(@NonNull activity: Activity, itemSeq: Long, @NonNull callback: GamebaseDataCallback<PurchasableReceipt>)
Request Purchasing Item that has itemSeq.
requestRetryTransaction
Link copied to clipboard
open fun requestRetryTransaction(@NonNull activity: Activity, @NonNull callback: GamebaseDataCallback<PurchasableRetryTransactionResult>)
'Deprecated API'.
requestSubscriptionsStatus
Link copied to clipboard
open fun requestSubscriptionsStatus(@NonNull activity: Activity, @NonNull configuration: PurchasableConfiguration, @NonNull callback: GamebaseDataCallback<List<PurchasableSubscriptionStatus>>)
Request a list of purchased subscription status.
setStoreCode
Link copied to clipboard
open fun setStoreCode(storeCode: String)
Set the store code of the current app.