Webhook Notification
Last updated
Last updated
Configure Webhook to receive notifications. CCPayment will notify merchant of the final transaction results. You can configure the Webhook URL on the Developer page
In case of an event sending failure, the Webhook will retry up to 6 times to resend the event.
E.g.
1) Notify merchants of the status of payments asynchronously: enter your asynchronous notification URL on the page Developer > Webhook URL and click the Check button.
Note: This URL is a POST request. Content-Type of the request header is application/json and please make sure to return {http code: 200}.
2) Receive notifications from CCPayment. You may choose SHA-256 to verify signature or choose RSA for decryption. The returned parameters include: merchant order ID(merchant_order_id), order status, token information. These parameters are used for updating the order status of merchants.
CCPayment uses SHA-256 signature
Name | Value | Required | Type | Description |
---|---|---|---|---|
Appid | 202302010636261620672405236006912 | Y | string | Merchant's unique credential. Find it on the Developer page. |
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)) |
Merchants sign to ensure information safety. Once the merchant has processed the order, please return "Success" in the body of the HTTP response if the processing has been successful. If the process fails, CCPayment will attempt to send the order again and the Webhook will retry up to 6 times.