Retrieves the unique ID of a purchase.
BPS_API const char* paymentservice_event_get_purchase_id(bps_event_t *event, unsigned int index)
- The event containing the array of existing purchases.
- The index into the array of existing purchases. You can specify an index value that ranges from zero to the number of purchases minus one. You can retrieve the number of purchases using the paymentservice_event_get_number_purchases(event) function.
The paymentservice_event_get_purchase_id() function retrieves the unique ID of a purchase. This ID is required in order to cancel a purchase.
The unique ID of the purchase.