Transaction object used Iap methods.

Variables

@:optionaloptionalamount:Int

Facebook Gameroom only. The amount the player will be charged for a single unit of this product.

@:optionaloptionalcancel_date:String

Amazon Pay only. The cancel date for the purchase. This field is only set if the purchase is canceled.

@:optionaloptionalcanceled:Bool

Amazon Pay only. Is set to true if the receipt was canceled or has expired; otherwise false.

@:optionaloptionalcurrency:String

Facebook Gameroom only. The currency used for the purchase.

date:String

The date and time for the transaction.

ident:String

The product identifier.

@:optionaloptionalis_sandbox_mode:Bool

Amazon Pay only. If true, the SDK is running in Sandbox mode. This only allows interactions with the Amazon AppTester. Use this mode only for testing locally.

@:optionaloptionaloriginal_trans:IapTransaction

Apple only. The original transaction.

This field is only set when state is TRANS_STATE_RESTORED.

@:optionaloptionalpurchase_token:String

Facebook Gameroom only. The purchase token.

@:optionaloptionalquantity:Int

Facebook Gameroom only. The quantity of this item the user is purchasing.

@:optionaloptionalreceipt:String

The transaction receipt.

This field is only set when state is TRANS_STATE_PURCHASED or TRANS_STATE_UNVERIFIED.

@:optionaloptionalrequest_id:String

Facebook only. This field is set to the optional custom unique request id request_id if set in the Iap.buy call parameters.

@:optionaloptionalsignature:String

Google Play only. A string containing the signature of the purchase data that was signed with the private key of the developer.

state:IapTransactionState

Transaction state.

@:optionaloptionaltrans_ident:String

The transaction identifier.

This field is only set when state is TRANS_STATE_RESTORED, TRANS_STATE_UNVERIFIED or TRANS_STATE_PURCHASED.

@:optionaloptionaluser_id:String

Amazon Pay only. The user ID.