Create a webhook endpoint
1
Open Developer Hub from the left sidebar, then click the Webhooks tab.
2
Click Add Endpoint. Enter your HTTPS URL - for example,
https://your-app.com/api/ownpay/webhook.3
Select the events you want to receive from the checkbox list. You can choose all events or pick specific ones.
4
Click Save. OwnPay generates a unique signing secret. Copy this secret immediately - it will not be shown again.
Available events
Signature verification
Each webhook request includes anX-OwnPay-Signature header containing the HMAC-SHA256 hash of the raw payload body using your signing secret.
Delivery and retries
OwnPay tracks every delivery attempt. When an endpoint returns a non-2xx status code or times out after 10 seconds, the system retries on an escalating schedule:
If all retries are exhausted, the event enters the dead letter queue. You can inspect and manually replay dead-lettered events from the Developer Hub.
Successful deliveries (2xx response) are logged with the response status code and response body for auditing.
Test a webhook
Click the Test Webhook button next to any endpoint to send a samplepayment.completed payload. This is useful during development to verify your signature verification logic and endpoint routing before going live.
Related Pages
- Developer Hub - Overview of the developer tools section
- API Keys - Manage credentials for API access
- Webhook API Reference - Signature verification algorithm and payload schemas