v2
latestOpenAPI 3.0.12026-07-26334612609.5 KBSDK
Start Crypto.com payment
Create a Crypto.com payment and return the payment payload (URL and optional QR code)
post/sdk/{environmentId}/onramps/cryptoDotCom/payment
Path parameters
environmentIdstring required
Example:95b11417-f18f-457f-8804-68e361f9164f
ID of the environment
Request body
Example request
{
"amount": 100,
"currency": "USD",
"description": "An example name",
"orderId": "An example name",
"subMerchantId": "An example name",
"walletAddress": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"networkId": "An example name",
"merchantName": "An example name"
}Response
Crypto.com payment payload
Example response
{
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"amount": 2500,
"currency": "USD",
"created": 1555098161,
"cryptoAmount": "1894.8",
"customerId": "1234567890",
"paymentUrl": "https://js.crypto.com/sdk/payments/checkout/set_wallet?publishableKey=XXX&sdkMeta=YYY",
"returnUrl": "http://YOUR_WEBSITE.com/orders/123/complete",
"cancelUrl": "http://YOUR_WEBSITE.com/orders/123/fail",
"description": "Crypto.com Tee (Unisex)",
"orderId": "640cf83d-a316-4030-9878-71be1d98b737",
"recipient": "Crypto.com Shop",
"status": "pending",
"expiredAt": 1555098461
}