Argument | Is Mandatory | Description |
---|---|---|
customerId | mandatory | The name or identifier of the customer. |
email | The customer’s email address. Although not mandatory, providing it helps expedite the payment process. | |
price | mandatory | The price in cents , which will be converted by Appcharge . |
currency | mandatory | The currency used for the transaction, e.g., usd , eur . |
offerName | mandatory | The name of the offer. |
offerSku | mandatory | The SKU number or text for the offer. |
offerAssetUrl | A URL displaying an image for the offer. | |
offerDescription | mandatory | A description of the offer. |
Argument | Is Mandatory | Description |
---|---|---|
name | mandatory | The name for the item |
assetUrl | mandatory | The URL of an image to display the item. |
sku | mandatory | The SKU of the item. |
quantity | mandatory | The quantity of the item. For example, if the name is “Coins” and the quantity is 300, it will be displayed as “300 Coins.” |
quantityDisplay | The Quantity Display allows you to replace the numerical quantity with custom text. |
Method | Description |
---|---|
OnPurchaseSuccess | Triggered when the user successfully completes the purchase. |
OnPurchaseFailed | Triggered when the checkout window is closed or if an error occurs during the purchasing process. |