Document
Introduction
Summary
arcalet ?
Capabilities
Object Model
arcalet API
Synchronization
Event Processing
Callback
API Class
Objects Summary
Error Code
Reference
ArcaletGame
Constructor
Method
Property
Event
ArcaletScene
Constructor
Method
Property
Event
ArcaletItem
Method
Super User
ArcaletScore
Method
Super User
ArcaletShop
Method
ArcaletSystem
Method
ArcaletThreadPool
Method
ReferenceArcaletShop 》 Method

Method

public static void CommitInAppPurchase(ArcaletGame game, string iguid, int type,string receipt, OnCallCompletion cb, object token)
game  	Game Login
iguid 	Purchased item identifier
type 	0: testing purchase (Sandbox) 
	 	1: actual purchase
receipt 	The transaction (receipt-data) sent back from App-Store.
		After it is validated, it will register with the callback function. 

The cb method is defined as:

void cb(int code, object token) 

code with a value of 0 means the setup succeeded.  A code other than 0 means the setup failed.
public static void CommitInAppBilling(ArcaletGame game, string iguid, int type, string receipt, string signature,int keyId,OnCallCompletion cb, object token)
game	        Game Login
iguid	        The purchased object of jguid
type	                0: Purchasing testing (Sandbox)
                        1: Actual Purchasing
receipt	        The data of transaction sent back from Google Play store 
signature	The data of electronic signature receipt (CodeBase64)

After it is verified, the callback function will be called.  cb is defined as follows:

void cb(int code, object token)

code with a value of 0 means the setup succeeded.  A code other than 0 means the setup failed.
Was this page helpful?
Yes No