# Thawani Pay

1\. **Open Integrations**

Go to the Integrations page in the Whautomate platform, then scroll down and select the **Thawani Pay** **connect** button to continue.

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2F0Le8YzVejStP9WONKQaa%2Fimage.png?alt=media&#x26;token=0a8c4174-aa05-4b5d-a696-19b28e76a9e0" alt=""><figcaption></figcaption></figure>

2. **Get Your API Keys**

You’ll need three credentials from Thawani Pay:

* **Public Key**
* **Secret Key**
* **Webhook Secret**

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2F76P6leeX4lcCtZGSQe07%2Fimage.png?alt=media&#x26;token=ebde387d-3453-4e58-b7dc-6073c6a8b625" alt=""><figcaption></figcaption></figure>

3. **Retrieve Public & Secret Keys**

* First, go to <https://uatmerchant.thawani.om/>. You need to log in to your Thawani Pay account.
* Navigate to **Settings > Developers**.
* Click **Create Key** to generate your **Public Key** and **Secret Key**. 👇

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FhWjrf5SZdaFOjKtXj4j8%2Fimage.png?alt=media&#x26;token=b9b6a067-38d5-4bd8-a622-6be9112efbd7" alt=""><figcaption></figcaption></figure>

* Copy these keys and paste them into your Whautomate Thawani Pay integration settings. 👇

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2Fslo5tI5l1noYbmj5v8a4%2Fimage.png?alt=media&#x26;token=30ac51e0-a3e1-4254-8efb-892a8409e9bb" alt=""><figcaption></figcaption></figure>

4\. **Configure Webhook Secret**

* In the Whautomate integration settings, scroll to the **Webhook Settings** section.
* Copy the **Webhook Callback URL** provided. 👇

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2Ff0Pey9aF43F93fismqSd%2Fimage.png?alt=media&#x26;token=a3ff4876-ba90-4689-ad71-7772e1cb7ba3" alt=""><figcaption></figcaption></figure>

* Go back to your **Thawani Pay Merchant Portal > Settings > Developers**.
* Click **New Webhook** and paste the Webhook URL.
* Click **Save**. 👇

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FToR2YEIHzNHUHJpeGIy1%2Fimage.png?alt=media&#x26;token=a1887f30-a68f-46f1-b776-285b4b0f0352" alt=""><figcaption></figcaption></figure>

* Copy the **Webhook Secret Key** generated by Thawani Pay and paste it into the Whautomate platform. 👇

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2F1LWK0YvcL6ze5dvYdq1n%2Fimage.png?alt=media&#x26;token=a1fe44d4-ad32-495e-82e3-37a259765d79" alt=""><figcaption></figcaption></figure>

5\. **Save & Complete Integration**

* After entering the Public Key, Secret Key, and Webhook Secret in Whautomate, click **Save**.
* Your Thawani Pay integration is now complete. 🎉

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FBeO7SZXLhKapEfXCFs50%2Fimage.png?alt=media&#x26;token=177f1d95-c713-4641-b00d-5d48edb6d21c" alt=""><figcaption></figcaption></figure>

6. After successfully connecting your Thawani Pay account, you can create an invoice and Choose **"Request payment via WhatsApp"** option to test your payment. 👇

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FsstYl3SIQHBaDcQ539rC%2Fimage.png?alt=media&#x26;token=cadbf325-c509-4a38-8e79-6ad81cdcc568" alt=""><figcaption></figcaption></figure>

7. Open your **WhatsApp** account and Select the **Make Payment** button to continue.

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2Fpy9ahTKlXfAoZNcFgszg%2Fimage.png?alt=media&#x26;token=c3f92ae6-4b12-41a3-bd43-35e38840b1af" alt=""><figcaption></figcaption></figure>

8. Select a payment method and enter your card details to complete the payment. 👇

<figure><img src="https://810714386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF8vuadG7OJ1fFdSBZATv%2Fuploads%2FXwalOZqCj3ymVi1aEc50%2Fimage.png?alt=media&#x26;token=85d09e85-9c21-447b-83b0-1f22cf0db88d" alt=""><figcaption></figcaption></figure>
