Notification API
Less than 1 minute
Introduce
Important!!! Notification if you finish handler the message please return a string SUCCESS
Request Header
Field | Attribute | Type | Description |
---|---|---|---|
Content-Type | Mandatory | String | String represents indicate the media type of the resource (e.g. application/json, application/pdf) |
X-TIMESTAMP | Mandatory | String | Merchant's current local time in yyyy-MM-ddTHH:mm:ssTZD format |
X-SIGNATURE | Mandatory | String | Non-Repudiation & Integrity checking with algorithm asymmetric signature |
Tips
Notes: X-SIGNATURE
- X-SIGNATURE. SHA256withRSA(smilepay_public_Key, stringToSign). stringToSign = tradeNo + "|" + X-TIMESTAMP ;
Request Body Parameter
Field | Attribute | Type | Description |
---|---|---|---|
tradeNo | Mandatory | String | String Smilepay orderNo |
orderNo | Mandatory | String | String Merchant orderNo |
merchantId | Mandatory | String | String merchantId |
merchantName | Mandatory | String | String merchantName |
shopName | Optional | String | String shopName |
status | Mandatory | String | String status: PROCESSING, SUCCESS, FAILED... Refer to: TransactionStatus |
transactionTime | Mandatory | String | String Transaction time |
money | Mandatory | Money | Json String Net amount of the transaction. Refer to: Money |