Verify Payments API
Path Attributes
id
Integer
Mandatory
Unique identifier of the Payment to be retrieved
Query Attributes
verification_signature
String
Mandatory
Signature which has been provided to you while you successfully made a charge. Would have recived directly as a response to payments/charge API call OR as a payload on payment.completed
webhook response
Example
curl --location --request POST 'https://api.durianpay.id/v1/payments/pay_wA2X2Mvm2d4965/verify' \
-H 'authorization: [Base64({Your_Server_Key}:)]' \
-H 'content-type: application/json' \
-d '{
"verification_signature": "adf9a1a37af514c91225f6680e2df723fefebb7638519bcc7e7c9de02f2a3ab2"
}
'
Response Code
200 - Success
1 2 3
{ "data": true // or false depending on verification }
400 - Invalid Request
401 - Unauthorized Access
500 - Internal Server Error