Unity iOS
Consume Purchase
The following function notifies Appcharge whether the player received the digital goods associated with the purchase:
Argument | Type | Required | Description |
---|---|---|---|
CUSTOMER_ID | string | Yes | Player ID. |
ORDER_ID | string | Yes | The order ID to mark as consumed. |
PUBLISHER_TRANSACTION_ID | string | No | Transaction ID from the session creation process. |
This function triggers the OnPurchaseConsumed
with the consumed
argument.
- If
consumed
istrue
, the purchase is marked as consumed, indicating that the player successfully received the digital goods. - If
consumed
isfalse
, the purchase is marked as non-consumed, indicating that the player didn’t receive the digital goods.