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:
Argument | Description |
---|---|
orderId | Represents the orderId we want to consume |
publisherTransactionId | Represents 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.