Webhook Setup Primer

Minimum webhook configuration before integration testing.

Webhooks notify your server when payments succeed, fail, or are refunded. Configure them early in technical onboarding so you can validate the full flow on Fin staging.


Why webhooks matter

ApproachLimitation
Redirect to successUrl onlyCustomer can close browser before redirect — not proof of payment
Polling status APIWorks, but slower and misses async updates
WebhooksReal-time, server-to-server confirmation
❗️

Always confirm payment via status API or webhook — never trust successUrl alone.


Minimum requirements

RequirementDetail
HTTPS URLPublicly reachable TLS endpoint
POST handlerAccept application/json body
IdempotencySame event may arrive twice — dedupe by transactionId
Fast responseReturn 200 within 5 seconds, process async if needed

Setup steps

  1. Choose URL — e.g. https://yourstore.com/webhooks/digetpay
  2. Implement handler — see Handle Webhooks and PHP examples in Hosted Checkout
  3. Register in dashboard — Settings → Webhooks (staging: fin-admin.digetpay.com)
  4. Test on Fin — complete a payment and verify delivery

Full guides:


Staging vs production

Register separate webhook URLs (or separate paths) per environment. Use Fin staging keys only against staging endpoints.




Did this page help you?