- When customer checks out his order in merchant app, merchant server calls Crypto.com Pay server to create a payment, a
return_url
is provided by merchant (explains below). The payment object returned will consist of apayment_url
. - Merchant app open webview and navigate to
payment_url
, the payment page is displayed. - Payment page has deep link for the customer to switch to Crypto.com app.
- Customer completes payment in Crypto.com’s app.
- Customer switches back to merchant app.
- Merchant app’s webview will be redirected to
return_url
once payment is captured, merchant app detects the redirection, close the webview. - Merchant app calls merchant server to complete the order.
- Merchant server calls Crypto.com Pay server again to confirm the payment is indeed captured.
- Merchant server completes the order.
- Sign up for a Crypto.com Pay account, if you don't already have one.
- Once you have access to the Crypto.com Pay Merchant Dashboard, You will be able to generate a secret key.
- Run this App.
- Select
Settings
in Menu. - Fill in the secret key in the Settings view.
- Test the Payment Flow in the App.
- Visit our Merchant FAQ and API Documentation.
- Open an issue if you are having troubles with this sample code.