A webhook is how a payment result reaches your server rather than only your browser. You make one with a URL, method, and headers, then attach it to a gateway.
These pages cover the mechanics inside MockGateway. For background on what payment webhooks are and why signature checks matter, the blog post <a href="/blog/how-payment-gateway-webhooks-work">How Payment Gateway Webhooks Work</a> covers the concept and is not repeated here. If your receiver only exists on your own machine, you can <a href="/docs/webhooks/receive-on-localhost">receive them on localhost without a tunnel</a>.
- 1Create a webhookPoint a gateway at your endpoint so payment results reach your server instead of only your browser.howto3 min read
- 2Test webhook connectivitySend a single request to a webhook URL and see whether it answers, before running a payment through it.howto3 min read
- 3Receive webhooks on localhostInstall the MockGateway CLI, sign in, and forward real webhook deliveries to a local port — no tunnel, and the same URL next time.howto5 min read