paymentservice_cancel_subscription()

Cancel a subscription to a digital good.

Synopsis:

#include <bps/paymentservice.h>
 
BPS_API int paymentservice_cancel_subscription(const char *purchase_id, const char *group_id, unsigned *request_id)

Arguments:

purchase_id

The purchase ID of the digital good to cancel the subscription to.

group_id

The window group ID of the application. This ID is required so that the Payment Service can properly display dialogs.

request_id

The Payment Service populates this argument upon successful completion of the request with the request ID. It can be used to correlate the response to the request.

Library:

libbps

Description:

The paymentservice_cancel_subscription() function cancels the subscription to a digital good.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno value set otherwise.