OnPurchaseComplete, provide the orderId the execute Consume Purchase as follow:
Code Example
ConsumePurchase receives two arguments:
| Argument | Description |
|---|---|
customerId | Represents the customer identification |
orderId | Represents the orderId we want to consume |
publisherTransactionId | Represents a unique metadata for the consume process |
