> For the complete documentation index, see [llms.txt](https://edentech.gitbook.io/glover/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://edentech.gitbook.io/glover/backend/webhooks-payment-gateway.md).

# Webhooks - Payment gateway

Webhooks are used to notify your application when an event happens in your payment gateway. Webhooks are particularly useful for asynchronous events like when a customer’s bank confirms a payment, a customer disputes a charge, a recurring payment succeeds, or when collecting subscription payments.

Currently not all our payment gateway has the webhook, below are the list of the payment gateways we have implemented webhook for:

1. Flutterwave
2. Stripe
3. Paystack
4. Razorpay

## How to get the webhook from the backend

You will need to copy the payment gateway webhook link from the backend and add to your payment gateway webhook settings page.

To get the webhook link, visit the **Payment Webhooks** page on the backend, then copy the link for your preferred payment gateway stated above.

<figure><img src="/files/ISB7zoLybncMRX081ItJ" alt=""><figcaption></figcaption></figure>

## How to setup the webhook on your preferred Payment gateway

After copying the webhook link as stated above, you have to setup the link on your payment gateway webhook settings section.

Flutterwave: <https://developer.flutterwave.com/docs/integration-guides/webhooks/>

{% embed url="<https://developer.flutterwave.com/images/webhook.png>" %}

Paystack: <https://support.paystack.com/hc/article_attachments/360006531140/file-Pf0Kxk6eKk.png>

{% embed url="<https://support.paystack.com/hc/en-us/articles/360009881600-Paystack-Test-Keys-Live-Keys-and-Webhooks>" %}

Stripe: <https://stripe.com/docs/webhooks/go-live#manage-endpoints>

Razorpay: <https://razorpay.com/docs/webhooks/setup-edit-payments/>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://edentech.gitbook.io/glover/backend/webhooks-payment-gateway.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
