paymentservice_event_get_cancelled_purchase_id()

Retrieves the purchase ID of a request to cancel a subscription.

Synopsis:

#include <bps/paymentservice.h>
 
BPS_API const char* paymentservice_event_get_cancelled_purchase_id(bps_event_t *event)

Arguments:

event
The event containing the purchase cancellation response.

Library:

libbps

Description:

The paymentservice_event_get_cancelled_purchase_id() function retrieves the purchase ID of a request to cancel a subscription to a digital good from the specified CANCEL_SUBSCRIPTION_RESPONSE event. The response code of the CANCEL_SUBSCRIPTION_RESPONSE event must be SUCCESS_RESPONSE.

Returns:

The purchase ID that was sent in the cancellation request.