Purchase Consume

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(orderId: String, publisherTransactionId: String)

The consumePurchase receives two arguments:

ArgumentDescription
orderIdRepresents the orderId we want to consume
publisherTransactionIdRepresents a unique metadata for the consume process

Note: Publishers may also send transactionSessionId for extra data if available. This field is not mandatory and may stay empty.