The following function notifies Appcharge whether the player received the digital goods associated with the purchase:

CheckoutController.Instance.ConsumePurchase(
    "CUSTOMER_ID",
    "ORDER_ID",
    "PUBLISHER_TRANSACTION_ID"
)
ArgumentTypeRequiredDescription
CUSTOMER_IDstringYesPlayer ID.
ORDER_IDstringYesThe order ID to mark as consumed.
PUBLISHER_TRANSACTION_IDstringNoTransaction ID from the session creation process.

This function triggers the OnPurchaseConsumed with the consumed argument.

  • If consumed is true, the purchase is marked as consumed, indicating that the player successfully received the digital goods.
  • If consumed is false, the purchase is marked as non-consumed, indicating that the player didn’t receive the digital goods.