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

{
	"code": 10000,
	"msg": "success",
	"data": {
              "payment_url": "https://s.cwallet.com/zpj9u9"
	}
}

Request Body Example

{
    "order_valid_period":823456,
    "product_price":"1",
    "merchant_order_id":"2012033040550",
    "product_name":"test",
    "return_url":"https://app.gitbook.com/xxxxx"
}

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

#449: hosted checkout rewrite 5.31

Change request updated