A webhook tells your own system when something happens in PaymentHooks, for example a payment succeeds or a subscription renews. PaymentHooks sends the event to a web address (an endpoint) your developers provide.
Add an endpoint
- 1Open Developers > Webhooks.
- 2Click Create Endpoint.
- 3Enter the Endpoint URL. It must use HTTPS.
- 4Add a Description if you like, and choose the events to send, or all events.
- 5Create the endpoint and copy the signing secret shown. Your developers use it to check that each event really came from PaymentHooks.
After that the Signing Secret column shows the secret masked, as whsec_… and its last 4 characters. Click the eye icon to Reveal it, or the copy icon to Copy it; click the eye again to hide it. Revealing needs a role with Account write, is limited to 10 times an hour and is recorded in Settings > Security > Activity log. The API returns the secret masked too, except when an endpoint is created or its secret is rotated or revealed.
Each event is signed in the X-PaymentHooks-Signature header. The Signature Verification tab explains how to check it.
Manage an endpoint
- Edit Events changes which events it receives.
- Edit Filters sends only events for one gateway, one API version or an amount range.
- Rotate Secret creates a new signing secret.
- Disable / Enable pauses or restarts deliveries. Delete removes the endpoint.
Deliveries and retries
A delivery counts as successful when your endpoint answers with a 2xx status within 10 seconds. If it fails, PaymentHooks tries again after 1 minute, 5 minutes, 30 minutes and 2 hours, up to 5 attempts in total.
The Delivery Logs tab lists every delivery. Click View Details to see the attempts, status code and response, or Replay to send the event again. The Statistics tab shows success rates.
Auto-disabled. Fix the problem, then click Enable.Test with the simulator
On the Simulator tab, choose a Target Endpoint and an event, then click Send Test Event to see how your system responds.