Gamebase SDK for Unity  1.14.2
Toast Gamebase Platform
Gamebase.Purchase Class Reference

The Purchase class provides several APIs related to purchasing processes. More...

Collaboration diagram for Gamebase.Purchase:
Collaboration graph

Static Public Member Functions

static void RequestPurchase (long itemSeq, GamebaseCallback.GamebaseDelegate< GamebaseResponse.Purchase.PurchasableReceipt > callback)
 Call following API of an item to purchase by using itemSeq to send a purchase request. More...
 
static void RequestItemListOfNotConsumed (GamebaseCallback.GamebaseDelegate< List< GamebaseResponse.Purchase.PurchasableReceipt >> callback)
 Request for a list of non-consumed items, which have not been normally consumed (delivered, or provided) after purchase. More...
 
static void RequestRetryTransaction (GamebaseCallback.GamebaseDelegate< GamebaseResponse.Purchase.PurchasableRetryTransactionResult > callback)
 In case a purchase is not normally completed after a successful purchase at a store due to failure of authentication of TOAST IAP server, try to reprocess by using API. More...
 
static void RequestItemListPurchasable (GamebaseCallback.GamebaseDelegate< List< GamebaseResponse.Purchase.PurchasableItem >> callback)
 Request a item list which is purchasable. More...
 
static void RequestItemListAtIAPConsole (GamebaseCallback.GamebaseDelegate< List< GamebaseResponse.Purchase.PurchasableItem >> callback)
 Request a item list which is purchasable. More...
 
static void SetPromotionIAPHandler (GamebaseCallback.GamebaseDelegate< GamebaseResponse.Purchase.PurchasableReceipt > callback)
 If you want to deliver some items that have been purchased to user, you should implement this handler. More...
 
static void SetStoreCode (string storeCode)
 Set the store code of the current app. More...
 
static string GetStoreCode ()
 Gets the store code of the current app. More...
 

Detailed Description

The Purchase class provides several APIs related to purchasing processes.

Before using these APIs, You should be logged in. Because every Purchase API need informations that are obtained from GamebaseServer. If you do not have been authenticated, you will get NOT_LOGGED_IN error.

Since
Added 1.4.0.