Skip to main content

Verify Payments API

The following endpoint retrieves the details of a single Payment

/payments/:id/verify

Path parameters#

Fieldis required?Description
idmandatoryinteger Unique identifier of the Payment to be retrieved

Query parameters#

Fieldis required?Description
verification_signaturerequiredstring 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 -u <YOUR_SECRET_KEY> \
-X GET https://api.durianpay.id/v1/payments/pay_B14sdfwAdmmSDF24a/verify \
-H "content-type: application/json"'
-d '
"verification_signature": "9e892f199d026d06a56669e658a56f264610431d24e8b4d07f7bd46f6d5062d2"
'

Response#

{
"data": true // or false depending on verification
}