paymentservice_event_get_price()

Retrieves the price attribute from a GET_PRICE_RESPONSE event.

Synopsis:

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

Arguments:

event
The event containing the price information.

Library:

libbps

Description:

The paymentservice_event_get_price() function retrieves the price attribute from the specified GET_PRICE_RESPONSE event. The response code of the GET_PRICE_RESPONSE event must be SUCCESS_RESPONSE.

Returns:

The price of the digital good.