Developers / Webhooks
Receive real-time updates for payments, payouts, and events. Build reliable, event-driven payment flows with NexttPay.
A payment or payout event is triggered on the platform.
We send a POST request to your configured endpoint.
Your server processes the event and returns a 2xx response.
payment.created
Triggered when a payment is initiated.
payment.succeeded
Triggered when a payment is successfully completed.
payment.failed
Triggered when a payment fails.
payout.completed
Triggered when a payout is successfully processed.
payout.failed
Triggered when a payout fails.
Always verify webhook signatures to ensure requests are sent by NexttPay and not malicious actors.
If your endpoint fails to respond with a 2xx status, webhook delivery will be retried automatically with exponential backoff.
• Automatic retries for failed deliveries
• Idempotent event handling recommended
• Logs available in dashboard
Here’s a simple Node.js example for handling webhook events.
• Parse incoming JSON payload
• Verify signature
• Handle event type
Use webhooks to automate payments, notifications, and business logic.