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.

EventSent when
paymentSubmittedA payment has been submitted after the user authorises it
paymentPendingA payment is pending at the bank
paymentCompletedA payment has completed
paymentErrorA payment has been rejected
payFileCreatedA file payment consent has been created
recurringPaymentCreatedA recurring payment (VRP) consent has been created

Handling payment webhooks

  • Use paymentId to match each webhook to the payment in your system.
  • Webhooks can arrive in any order. For example, paymentCompleted can arrive before paymentPending. Don't move a payment from completed or rejected back to pending because a later webhook arrived.
  • Webhooks are only sent for the pending, completed, and rejected statuses. There is no webhook when a payment is cancelled, 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.