Payment Webhooks
Webhooks for payment lifecycle events, pay files, and recurring payment consents.
These webhooks report the progress of payments initiated through Moneyhub, and the creation of pay file and recurring payment consents. Every event uses the standard webhook envelope. Each page below documents the payload and shows a full example.
A single payment usually produces paymentSubmitted first, followed by one or more of paymentPending, paymentCompleted, or paymentError as the bank processes it.
| Event | Sent when |
|---|---|
paymentSubmitted | A payment has been submitted after the user authorises it |
paymentPending | A payment is pending at the bank |
paymentCompleted | A payment has completed |
paymentError | A payment has been rejected |
payFileCreated | A file payment consent has been created |
recurringPaymentCreated | A recurring payment (VRP) consent has been created |
Handling payment webhooks
- Use
paymentIdto match each webhook to the payment in your system. - Webhooks can arrive in any order. For example,
paymentCompletedcan arrive beforepaymentPending. Don't move a payment fromcompletedorrejectedback topendingbecause a later webhook arrived. - Webhooks are only sent for the
pending,completed, andrejectedstatuses. There is no webhook when a payment iscancelled,abandoned, or fails with an error status. See SIP status. - Webhooks are not retried. If you haven't received a final status, retrieve the payment to check it.
- Before taking an action that can't be undone, such as releasing goods, you can confirm the status by retrieving the payment.
See Building a Webhook Receiver for general guidance on receiving and processing webhooks.
Updated 13 days ago
