Gamebase SDK for Android
1.13.0
Toast Gamebase Platform
|
This class provides wrapping of function execution related to payment. More...
Static Public Member Functions | |
static String | getStoreCode () |
Gets the store code of the current app. More... | |
static void | setStoreCode (final String storeCode) |
Set the store code of the current app. More... | |
static void | requestPurchase (@NonNull final Activity activity, final long itemSeq, @NonNull final GamebaseDataCallback< PurchasableReceipt > callback) |
Request Purchasing Item that has itemSeq. More... | |
static void | requestItemListOfNotConsumed (@NonNull final Activity activity, @NonNull final GamebaseDataCallback< List< PurchasableReceipt >> callback) |
Request a Item List which is not consumed. More... | |
static void | requestRetryTransaction (@NonNull final Activity activity, @NonNull final GamebaseDataCallback< PurchasableRetryTransactionResult > callback) |
Processes incomplete purchases. More... | |
static void | requestItemListPurchasable (@NonNull final Activity activity, @NonNull final GamebaseDataCallback< List< PurchasableItem >> callback) |
Request a item list which is purchasable. More... | |
static void | requestItemListAtIAPConsole (@NonNull final Activity activity, @NonNull final GamebaseDataCallback< List< PurchasableItem >> callback) |
Request a item list which is purchasable. More... | |
This class provides wrapping of function execution related to payment.
|
static |
Gets the store code of the current app.
This should only be called after the SDK has been initialized by calling Gamebase.initialize().
|
static |
Request a item list which is purchasable.
This list has items which are only registered in ToastCloud IAP Console, not Market(Google, OneStore)
activity | current Activity. |
callback | callback pass to API result. |
|
static |
Request a Item List which is not consumed.
You should deliver this itemReceipt info to your game-server to consume it or request consumeAPI to ToastCloud IAP Server
activity | current Activity. |
callback | callback pass to API result. |
|
static |
Request a item list which is purchasable.
This list has items which are registered in both Market(AppStore) and ToastCloud IAP Console
activity | current Activity. |
callback | callback pass to API result. |
|
static |
Request Purchasing Item that has itemSeq.
activity | current Activity. |
itemSeq | represent to item ID. |
callback | callback pass to API result. |
|
static |
Processes incomplete purchases.
Request a retrying transaction which is not completed to IAP Server
activity | current Activity. |
callback | callback pass to API result. |
|
static |
Set the store code of the current app.
storeCode | Input store code. |