Webhook callback endpoint for payment processor to notify transaction status
Develop Env
https://api-test.loaheovang.com
Develop Env
https://api-test.loaheovang.com
POST
/api/v1/partner/payment/callback
Last modified:2025-08-01 02:37:10
Maintainer:Not configured
Validates the checksum of the callback payload using the partner's client secret. The checksum should be calculated by signing the body data (excluding the checksum field itself) using HMAC SHA256 with the client secret as the key. If validation fails, returns error code 40014.To generate the checksum:
1.
Create a URLSearchParams object with these fields in order:
terminalID
bankCode
billNumber
transactionAmount
notice
payDate (in ISO 8601 format)
traceTransfer
ftCode
2.
Convert URLSearchParams to string
3.
Sign the string using HMAC SHA256 with your client secret as the key
4.
The resulting signature is your checksum
Example in NodeJS:
Example in Java:
Request
Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Header Params
Body Params application/jsonRequired
Example
{"terminalID":"T123456789","billNumber":"BILL202305250001","transactionAmount":"250000","notice":"Thanh toán hóa đơn","traceTransfer":"TRACE123456789","ftCode":"FT23145678901","checkSum":"string","payDate":"2023-05-25T14:35:12.000Z","bankCode":"BIDV"}
{"bankName":"Ngân hàng TMCP Quân đội (MB Bank)","bankCode":"MB","bankAccountNumber":"0123456789012","bankAccountName":"NGUYEN VAN A","qrcode":"string","storeId":"string","billNumber":"string","id":"string"}