Direct Deposit to Permanent Address Webhook Notification
CCPayment will post the Webhook notification when the permanent address has received the payment.
Last updated
CCPayment will post the Webhook notification when the permanent address has received the payment.
Last updated
There are three transaction statuses in the webhook notification under the field name “pay_status”. CCPayment will credit assets if the pay_status is “success”, which is the one and only status you should consider as the confirmation of the transaction. The other two pay_status, “pending” and “processing”, can not be regarded as the confirmation of the transaction.
Name | Value | Required | Type | Description |
---|---|---|---|---|
The direct deposit webhook notification was only posted the token configured by the merchant was deposited.
Once the merchant has processed the order, please return {http code: 200} and include a “success” string in the HTTP response body.
If CCPayment does not receive “success” as a response from the merchant, CCPayment will keep pushing the notification up to 6 times. Any response other than “success” will be regarded as a failure, and CCPayment will keep sending the notification.
Example
Name | Type | Description |
---|---|---|
pay_status
string
Payment status: pending, processing, success, failed pending: The transaction started, it is waiting to be sent out to the blockchain. processing: It’s being processed on the blockchain.
order_type
string
Direct Deposit
record_id
string
Trading record: one transaction generates one unique record_id
paid_amount
string
Received amount
service_fee
string
Service fee charged by CCPayment
credit_amount
string
Amount credited to merchant's account credit_amount=paid_amount-service_fee
chain
string
Chain for this transaction
contract
string
Contract
crypto
string
Crypto symbol
from_address
string
Sending address of the payment
to_address
string
Permanent deposit address for users
memo
string
Memo/tag; unique identification for address
txid
string
Txid
user_id
string
The unique user id of this address
Content-Type
Y
string
application/json; charset=utf-8
Appid
202302010636261620672405236006912
Y
string
Merchant's unique credential. Find it on the Developer page.
Timestamp
1677152490
Y
string
Timestamp in seconds (10-digit). The request is valid for two minutes.
Sign
871f0223c66ea72435208d03603a0cb00b90f6ac4a4ba725d00164d967e291f6
Y
string
SHA-256 (appId + appSecret + timestamp+body (json string))