Hosted Checkout Page Integration
Users can scan the QR code or copy the address on the hosted checkout page to make the payments.
We recommend merchants to integrate with CCPayment's hosted checkout interface. You will only need two steps to start accepting crypto payments. When the integration is done. Your server will be able to call the checkout URL API and present CCPayment's hosted checkout page to your users.
Step 1: Get Checkout URL
Returns a Checkout URL
POST
https://admin.ccpayment.com/ccpayment/v1/concise/url/get
Headers
Name | Type | Description |
---|---|---|
Appid* | String | Merchant's unique credential. Find it on the Developer page. |
Timestamp* | String | Timestamp in seconds (10-digit) expires in 2 minutes. |
Sign* | String | SHA-256 (APPID + APP Secret +timestamp+body (json string)). Signature guide. |
Request Body
Name | Type | Description |
---|---|---|
order_valid_period | Integer | The valid duration for the order. The parameter passed by the merchant should be less than the order's valid period in Merchant's system. Cause on-chain transactions may need some time to proceed. BTC will arrive within 24 hours and other tokens will usually arrive within 30 minutes. Orders will be valid for 24 hrs by default. The max valid duration is 10 days (max valid duration for Satoshi is 2 hours). |
product_price* | String | Amount should be paid for this order (in USD by default, no more than two digits after the dot) |
merchant_order_id* | String | Order ID in Merchant's system |
product_name* | String | Name of the product |
return_url | String | Redirect users to this URL after user makes payment |
Request Body Example
Step 2: Configure Webhook to receive payout notification
CCPayment will notify merchants of the final transaction results. Click the link below to view the guide for configuring the Webhook Notification.
Webhook Notification✅ Now you have completed the entire integration process for hosted checkout page!
Hosted Checkout Diagram
Last updated