Mini App
Payment Webhook (Merchant side)
After customer paid or tried to pay merchant’s invoice, this webhook will called with following query parameters from MonPay backend. Note that this function have to implemented on merchant side.
Request
Parameters | Type | Description |
---|---|---|
amount | double | Invoiced amount |
invoiceId | integer | Invoice id that paid |
status | string | PAID, FAILED |
tnxId | string | Transaction number when transaction success |
info | string | Human readable transaction result |
Example Webhook:
https://your.redirect.uri/monpay/webhook_invoice?invoiceId=64&status=PAID&txnId=5000000005044111&amount=1&info=success
https://your.redirect.uri/monpay/webhook_invoice?&status=FAILED&amount=1&info=Not+enough+credit