Notification Callback
For security reason, we highly recommend Merchant to ensure that the notifications received by Merchant backend, are actually sent by Finpay system. There are two ways to do those activity:
Validate the response by request checking transaction status to Finpay using Check Status Service. This flow is the most secure method to verify the authenticity of Callback. If transaction status match with Callback then Merchant can continue process the order
Validate the response using a comparison of the signature key receive from Finpay system when sending Callback with the signature generated by Merchant them self. If the siganture key does not match please ignore callback send by Finpay and you dont need to process the transaction.
Here are logic of the Signature Key to generate the Signature Key:
hash_hmac("sha512", json_encode($fields), $key);Data Request
1
transactionDate
String
O
1
50
ISO 8601 format
2
transferDateTime
String
M
1
50
Actual transfer date time ISO 8601 format
3
originalReferenceNo
String
M
1
64
Original transaction identifier on service provider system
4
originalPartnerReferenceNo
String
O
1
64
Original transaction identifier on the service consumer system
5
beneficiaryBankCode
String
M
1
6
Beneficiary bank code on the service provider system
6
beneficiaryAccountName
String
M
1
64
Original beneficiary account name on service provider system
7
beneficiaryAccountNo
String
M
1
64
Original beneficiary account number on service provider system
9
latestTransactionStatus
String
M
1
2
00 - Success
03 - Pending
04 - Refunded
06 - Failed
08 - Pending Approval
10
triggerType
String
M
1
9
Type of Notification: - automatic (updated by system) - manual (triggered by merchant/operation)
14
additionalInfo.notes
String
O
1
64
Callback note.
15
additionalInfo.feeAmount
String
O
16,2
16,2
Transfer fee amount, including two decimal places.
16
additionalInfo.transferAmount
String
O
16,2
16,2
Total transfer amount, including two decimal places.
17
additionalInfo.errorCode
String
O
1
7
Error code returned when the transfer fails.
18
additionalInfo.errorMessage
String
O
1
128
Detail Error message returned when the transfer fails.
Sample Request
Data Response
2
responseMessage
String
M
1
500
Response Message
3
processingTime
Number
M
1
20
Processing Time
Sample Response
Last updated

