1.4 QR Code Payment Notification
Descrption
- This interface should be implemented by merchant. The function is that when a payment transaction occurs on the merchant's QR Code, Bluepay will call this interface to notify the merchant of the payment transaction details.
URL
Method
Parameter name | Required | Type of data | Description |
Content-Type | Y | string | application/json |
Request Params
Parameter name | Required | Type of data | Length | Example | description |
params | Y | string | - | - | Parameter Body |
sign | Y | string | - | 45eebd745dcf0b5f6d6f9fcde28cd9fe8116a892 | Sign |
param
parameter name | required | type | description |
eventName | Yes | string | event name( qrcode.payment.success , qrcode.payment.failed ) |
mchOrderId | Yes | string | mchOrderId, alphanumeric, max length 32 |
transactionId | Yes | string | Bluepay transaction ID |
amount | integer | amount (unit: cents) | |
fee | integer | fee (unit: cents) | |
totalAmount | integer | totalAmount(qrCode amount, unit: cents) | |
transactionStatus | Yes | string | transaction status(PENDING , COMPLETED , FAILED ) |
createTime | Yes | string | payment create time |
returnTime | Yes | string | payment finish time |
channelCode | Yes | string | channel code |
remark | Yes | string | remark |
failedCode | No | integer | Failed Code |
failedMessage | No | string | Failed Message |
Response parameters
paramter name | type | description |
code | integer | Response code, fixed value 10000 |
message | string | Response message, fixed value Success |
Request example
Param content
How Bluepay construct request body
Request body
Response example