Troubleshooting Webhooks
Overview
By default, ChargeOver will only log the full webhook payload if your script returns a non 200 OK response.
For development purposes, you can force ChargeOver to log the full webhook payload by returning a 201 Created response instead of a 200 OK. This will cause ChargeOver to log the full payload, but not retry.
Viewing webhook logs
You can view a list of all recent webhooks by viewing the Webhook Log
report. To get there, you can follow the steps below.
- Go to your Report Center
- Choose the Webhook Log
This log will show all outgoing ChargeOver webhooks, and a button to view the payload for non 200 OK responses.
Log full payload for webhook
By default, ChargeOver will only log the full webhook payload if your script returns a non-200 OK response.
For development purposes, you can force ChargeOver to log the full webhook payload by returning a 201 Created response instead of a 200 OK. This will cause ChargeOver to log the full payload, but not retry.
PHP Example
header('HTTP/1.0 201 Created', true, 201);