Skip to main content
In this step, finalize the purchase and award the player. This step occurs after the onPurchaseSuccess trigger, allowing you to validate the purchase and complete the process.
bridge.consumePurchase(customerId: String, orderId: String, publisherTransactionId: String)
The consumePurchase receives two arguments:
ArgumentDescription
customerIdThe customer ID who initiate the purchase
orderIdThe orderId to consume
publisherTransactionIdRepresents a unique metadata for the consume process
Note: Publishers may also send publisherTransactionId for extra data if available. This field is not mandatory and may stay empty.