After payment

Webhooks

PayInvert POSTs JSON when a payment changes state so you do not have to poll.

Bank transfer, USSD, and 3DS can finish after the HTTP call. Register a public HTTPS URL under Settings → API Keys & Webhooks. Live webhooks need an https URL.

Wallet events are signed differently

Payment notifications use x-api-key. Funding and transfer events use HMAC-SHA512. See Wallet webhooks.

  • Accept POST with Content-Type: application/json.
  • The request includes an x-api-key header. Check it before you trust the body.
  • Return HTTP 200 immediately, then process asynchronously.
  • Key fulfilment on reference. The same event can arrive twice.

This is a completed card payment, as posted to the webhook URL.

json
{
  "reference": "NLM-MT1C291B422423B90",
  "status": "Successful",
  "amount": 18500,
  "accountNumber": "6497493507",
  "currency": "NGN",
  "channel": "CARD",
  "processor": "CARD",
  "transactionDate": "2026-08-20T11:56:54.300Z"
}
FieldNotes
referenceOrder reference from Create order.
statusSuccessful when the payment has landed. Fulfil only on this value, after you match amount and currency.
amountMajor units, same scale as Create order. 18500 is 18500 NGN, not kobo.
currencye.g. NGN.
channelHow it was paid. Card posts CARD.
processorWho captured it. Card posts CARD.
accountNumberAccount or PAN fragment returned with the event. Not the card number you sent on Pay.
transactionDateISO-8601 UTC timestamp.
javascript
app.post("/webhooks/payinvert", async (req, res) => {
  res.status(200).send("ok");
  const { reference, status, amount, currency } = req.body;
  const order = await db.orders.findByReference(reference);
  if (!order) return;
  if (status === "Successful" && Number(amount) === Number(order.amount) && currency === order.currency) {
    await fulfil(order);
  }
});