Purchase Consume

Based on the response message of the OnPurchaseComplete, provide the orderId the execute Consume Purchase as follow:

Code Example

CheckoutController.ConsumePurchase(String customerId, String orderId, Session transactionSessionId);

The ConsumePurchase receives two arguments:

ArgumentDescription
customerIdRepresents the customer identification
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.