Purchase link
Checkout link can be integrated with the following parameters in query string:
GET https://checkout.cometh.io/checkout?
checkout_api_key
*: your project's api keyproduct_id
*: ID of a previously created productuser_wallet
*: The Ethereum address of the user.user_email
: Email address of the end user making the purchase (for receipt/invoice). If not specified, user will have to share it before payment.parameters
: extra parameters to send to the mint function, as JSON object (ex:{}
)success_url
: URL where to redirect users to after a successful purchase. If not specified, will use the one specified in product. If not present in link nor in product definition, will raise an error.fail_url
: URL where to redirect users to after a failed purchase. If not specified, will use the one specified in product. If not present in link nor in product definition, will raise an error.
The redirect url will always contains the purchase id (added as ‘id’ in query string), and error id and message for the fail_url (‘error_id’ and ‘error_message’ in query string).
*: mandatory
Last updated