Retrieve the price of a digital good.
BPS_API int paymentservice_get_price(const char *digital_good_id, const char *digital_good_sku, const char *group_id, unsigned *request_id)
The digital good ID.
The digital good SKU.
The window group ID of the application. This ID is required so that the Payment Service can properly display dialogs.
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 (For the qcc command, use the -l bps option to link against this library)
The paymentservice_get_price() function gets the price of a digital good. Only the ID or SKU of the digital good is required as input in order to retrieve the digital good's price. If the ID and SKU are both provided, then the ID is used. To use the SKU, you must pass an empty string for the digital_good_id.
BPS_SUCCESS upon success, BPS_FAILURE with errno value set otherwise.
Last modified: 2014-09-30