---
updatedAt: 2025-11-12T00:03:13.000Z
agentTools:
  projectIndex: https://docs.myfatoorah.com/llms.txt
---

# Webhook

WHMCS

## Why Using Webhook

You can enable the Webhook feature to trigger events each time the order status changes on the MyFatoorah side. This feature will recover the lost orders due to connection loss or delayed callbacks.

<hr />

## **MyFatoorah Account**

1. Log in to your [Myfatoorah account](https://portal.myfatoorah.com/), go to Integration Settings → Webhook Settings, and configure your settings.
2. Enable the feature.
3. Add your **Endpoint** URL. Replace only the \{example.com} with your WHMCS store domain.

```
https://{example.com}/modules/gateways/myfatoorah/webhook.php
```

4. Generate the **Webhook Secret Key** and copy it by clicking on the copy icon (:clipboard:) on the right side of the secret key box.
5. Select the **Transaction Status Changed** event type.
6. Click on the Save button.

<Image title="WHMCS Endpoint.png" alt={1140} align="center" width="80%" border={true} src="https://files.readme.io/fac3e4c-WHMCS_Endpoint.png">
  MyFatoorah Account
</Image>

<hr />

## **WHMCS Account**

1. Log in to your **WHMCS** admin panel.
2. Click on the **wrench** icon at the upper right corner, then click on **System Settings**.
3. Under the **Payment** section, click on the **Payment Gateways** link.
4. Navigate to the **“Manage Existing Gateways”** tab.
5. Paste the secret key into the **Webhook Secret Key** text box.
6. Click on the **Save Changes** button.

<Image title="WHMCS Webhook Secret Key.png" alt={1667} align="center" width="80%" border={true} src="https://files.readme.io/225b4d1-WHMCS_Webhook_Secret_Key.png">
  WHMCS Account
</Image>

<hr />