A webhook sends a message to your own server when something happens in your Online Check Writer account, such as a check being updated or a payment changing status. This page shows how to turn on webhooks in the sandbox, and how to check that each message really came from us.
Quick answer: Go to Settings, then More, then Developer Panel, and open the Webhooks tab. Enter your Webhook URL and a Secret Key, set the Status to Enabled, pick your events, and click Update.
Step 1
Open the Developer Panel
Step 2
Open the Webhooks tab
Step 3
Pick your events
Step 4
Save
Using the Classic version? Click More in the left menu, then Developer Panel, and open the Webhooks tab.
To secure our webhook events, we are signing the HTTP request body with an HMAC using the secret as the signing key. Every webhook created has a secret used to sign requests with a signature header allowing listeners to validate requests. All webhook request messages are sent with a signature header key which should be used to validate the message payload. The algorithm calculates the HMAC of the HTTP request body in bytes using the webhook secret as the key (via SHA-256). If the calculated HMAC matches the value in the signature, then the message should be considered valid. If the HMAC validation fails, the message should be discarded.
In short: Your server uses the same secret key to work out the signature itself. If it matches the signature we sent, the message is real. If it does not match, throw the message away.
Code Snippet - PHP Example
The Developer Panel also has Webhook logs. Click See Webhook History to see the messages that were sent. There is also a Webhook Documentation link in the Support & Resources box.
For quick reference and immediate information about our API, please visit https://onlinecheckwriter.com/online-check-writer-api/.
For requests or more detailed information about our API, please send your inquiry to us at Support@onlinecheckwriter.com. Our development team will be in contact.