Retrieve the previous successful purchases.
BPS_API int paymentservice_get_existing_purchases_request(bool allow_refresh, const char *group_id, unsigned *request_id)
A value of true specifies that the device should be allowed to refresh the list of purchases from the Payment Service server, When a value of false is specified, the current list of cached purchases is returned immediately.
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.
The paymentservice_get_existing_purchases_request() function retrieves the previous successful purchases made by the end user from within the calling application.
BPS_SUCCESS upon success, BPS_FAILURE with errno value set otherwise.