After a purchase has been made by the user journey you helped start, it is time to close the loop and get notified of that transaction. In this section we will walk through Button Webhooks and show you how to receive order reports to an endpoint of your choice.
Button allows you to configure Webhooks so you can get real-time updates to your system that track with various user actions. To do so, you can configure this webhook – and test it – in your Button Dashboard. Then, Button will send you an HTTP request when any of those events are created.
All webhooks received must be validated before acting on their contents. See Security for details.
For full source code of sample apps in Node.js, Ruby, and Python that securely receive Button Webhooks, see here. You can also find these in the Example Implementation section, below.
Updated 4 months ago