Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Click on Delete subscription

...

image-20241031-125859.png

Verifying Webhook Signatures

To ensure the authenticity of webhook requests, verify the signature included in the moniepoint-webhook-signatureheader.

Verification Process

  1. Use this link to verify signature

  2. Add plain text in this format moniepoint-webhook-id__ moniepoint-webhook-timestamp__payload

  3. Add webhook secret in secret key field

  4. Compare the generated signature with the moniepoint-webhook-signature header to ensure integrity.

Note: moniepoint-webhook-idand moniepoint-webhook-timestamp , is in notification header.

Sample Notification Received:

Headers:

Code Block
{
  "user-agent": "ReactorNetty/1.1.9",
  "content-length": "623",
  "accept": "application/json",
  "accept-encoding": "gzip",
  "content-type": "application/json",
  "moniepoint-webhook-id": "a7603882-b75e-43b8-bb0e-f8d95d9a05e7",
  "moniepoint-webhook-signature": "muPzWhsvQfqKrRegthzLrNk3CMX7D6APTgEyxXgRABc=",
  "moniepoint-webhook-timestamp": "1730475285755",
  "x-forwarded-for": "141.147.77.31",
  "x-forwarded-host": "webhook-subscription.free.beeceptor.com",
  "x-forwarded-proto": "https"
}

Payload:

Code Block
{"data":{"amount":25300,"businessId":150,"customFields":{"Invoice ID":"iu12$%h"},"responseCode":"09","terminalSerial":"TestDev24","businessOwnerId":100,"responseMessage":"Airtime Purchase Pending","transactionTime":"2024-09-24T09:32:57.916+0100","transactionType":"AIRTIME","merchantReference":"","transactionStatus":"PENDING","transactionReference":"ATP|2MPT0073|183849600858930565120","retrievalReferenceNumber":""},"eventId":"df6e5ca5-8c5e-42c8-9a93-bd21cfa650ba","subject":{"domain":"CHANNELS","resource":"business","resourceId":"150"},"createdAt":"2024-11-01T16:19:57.912103129","eventType":"V1_POS_AIRTIME_TRANSACTION"}