Postbacks and Webhooks: Log the response and validate the signature

Modified on Tue, 28 Jan, 2020 at 10:45 AM

This article provides a code sample for PHP to log postbacks and webhooks to a file. Each log entry indicates if the signature validation passed or failed, if there is a signature to validate. The script listens for inbound GET or POST requests.


Supported integration methodologies:

  • Secure Web Pay family postbacks
  • Forte Checkout v1.0 postbacks
  • Webhooks v3 configured in Dex


Setup notes:  


  1. On lines 4-10, within the authentication class, replace credentials with your own.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article