Good Day!
Not sure where to report this, so I hope this is an okay space to share this information.
I just so happened to come across this while working on our Maya implementation. I think there’s a missing \ character in the “How to test my webhook endpoint” recipe example cURL command, at the end of the --header … line.
I am pasting the copied example cURL command here:
curl --request POST \
--url https://83ef-130-105-160-253.ngrok.io/webhook \
--header 'accept: application/json' \
--header 'content-type: application/json'
--data '{
"id": "e732f996-cb87-4120-b712-166d8183c01d",
"isPaid": true,
"status": "PAYMENT_SUCCESS",
"amount": "100",
"currency": "PHP",
"canVoid": true,
"canRefund": false,
"canCapture": false,
"createdAt": "2021-07-01T08:17:23.000Z",
"updatedAt": "2021-07-01T08:17:47.000Z",
"description": "Charge for maya.juan@mail.com",
"paymentTokenId": "GFwIun6Avo1kYe0nW7S1jVysqosocS9uMU7XNpMcUEksHx8FZXbE7TQZ3F1YQwZb5xHiAv2b2hpvrpVwYuNH1gPSPdaq8Zr90WXBRMfDVC8KkiHswlRjPz5ToTPEGy76S4S052RkAiwFcC6uAEGKnFyiGZzx7NMcYczrCK8",
"fundSource": {
"type": "card",
"id": "GFwIun6Avo1kYe0nW7S1jVysqosocS9uMU7XNpMcUEksHx8FZXbE7TQZ3F1YQwZb5xHiAv2b2hpvrpVwYuNH1gPSPdaq8Zr90WXBRMfDVC8KkiHswlRjPz5ToTPEGy76S4S052RkAiwFcC6uAEGKnFyiGZzx7NMcYczrCK8",
"description": "**** **** **** 4154",
"details": {
"scheme": "master-card",
"last4": "4154",
"first6": "545301",
"masked": "545301******4154",
"issuer": "Others"
}
},
"receipt": {
"transactionId": "1ec32b34-eb53-4d7b-bcd4-b846aff1d601",
"receiptNo": "eb1ae1105a61",
"approval_code": "00001234",
"approvalCode": "00001234"
},
"approvalCode": "00001234",
"receiptNumber": "eb1ae1105a61",
"requestReferenceNumber": "1625127550"
}'