paymentservice_purchase_arguments_set_metadata()
Attach (optional) metadata to the purchase request.
Synopsis:
#include <bps/paymentservice.h>
BPS_API int paymentservice_purchase_arguments_set_metadata(purchase_arguments_t *purchase_arguments, const char *metadata)
Arguments:
- purchase_arguments
-
The purchase_arguments_t in which to set the metadata.
- metadata
-
The metadata to be set.
Library:
libbpsDescription:
See paymentservice_purchase_request() for more information on the use of purchase metadata.
Returns:
BPS_SUCCESS upon success, BPS_FAILURE with errno value set otherwise.