paymentservice_event_get_initial_period()

Retrieves the initial period attribute from a GET_PRICE_RESPONSE event.

Synopsis:

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

Arguments:

event
The event containing the price information.

Library:

libbps

Description:

The paymentservice_event_get_initial_period() function retrieves the initial period attribute from the specified GET_PRICE_RESPONSE event. The response code of the GET_PRICE_RESPONSE event must be SUCCESS_RESPONSE.

Returns:

The initial period of the digital good subscription.