Native Checkout Integration
Users can scan the QR code or copy the address on the checkout page built on your sites/apps to make the payments.
Integrate with Native Checkout API to build the checkout page for your sites/apps. Users pay in your sites/apps. No need to lead them to external pages. Take complete control of your users' checkout experience.
Step 1: Create Payment Order
Submit payment order and receive payment address
POST
https://admin.ccpayment.com/ccpayment/v1/bill/create
Return receiving address/QR code and order information
Headers
Sign*
String
Timestamp*
String
Timestamp in seconds (10-digit) expires in 2 minutes
Appid*
String
Request Body
remark
String
Remark
merchant_order_id*
String
Order ID in Merchant's system. A unique ID for every order
product_price*
String
Amount should be paid for this order (in USD by default, no more than two digits after the dot)
token_id*
String
denominated_currency*
String
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).
Response (Success 200)
Header
Appid
202302010636261620672405236006912
Y
String
Timestamp
1677152490
Y
String
Timestamp in seconds (10-digit) expires in 2 minutes
Sign
871f0223c66ea72435208d03603a0cb00b90f6ac4a4ba725d00164d967e291f6
Y
String
SHA-256(appId + appSecret + timestamp+body(json string))
Body
Parameters
code
10000
Integer
msg
Success
String
data
Object
data.product_price
0.5
String
Amount (in USD by default)
data.order_id
202301090616511612332555323101184
String
CCPayment order ID
data.logo
String
Token icon
data.network
TRC20
String
Pay on this Network
data.pay_address
TYWnk1EGALQyYst2yFSd29QQQTEkuKMbyt
String
Pay to this address
data.crypto
USDT
String
Token symbol
data.order_valid_period
823456
Integer
Request Body Example
Step 2: Configure Webhook to receive payment notification
CCPayment will notify merchant of the final transaction result. Go to Webhook Configuration Guide.
✅ Now you have completed the entire integration process for native checkout!
Native checkout diagram
Last updated