Thawani Pay
Thawani Pay is a leading payment gateway in Oman. Connecting it lets your clients pay invoices, bookings, plans and store orders online. You need a public key and secret key from the Thawani merchant portal, and you add a webhook in Thawani so payments are confirmed automatically.
Before you start
- You need the Administrator or Owner role.
- Have access to your Thawani Pay merchant portal.
Connect Thawani Pay
-
Go to Settings > Finance > Payment Gateways and click Configure Thawani Pay. The Thawani Pay Configuration page opens.
You can also click Connect on the Thawani Pay card in Settings > Integrations.


- In the Thawani merchant portal, go to Settings > Developers and click Create Key.
- Paste the keys into Public Key and Secret Key in Whautomate.

- In the Webhook Settings card, click Copy next to Webhook callback URL.
- In Thawani, go to Settings > Developers, click New Webhook, paste the URL and click Save.
- Copy the webhook secret Thawani shows (it starts with whsec_) and paste it into Webhook Secret in Whautomate.

- Click Save. You see "Thawani Pay Gateway settings saved. Please make sure to configure your webhook."
Test it
- Create a small invoice for yourself, tick Request payment via WhatsApp and click Save and Send.
- Open WhatsApp and tap Make Payment.
- Choose a payment method and enter card details. The invoice changes to Paid once Thawani sends the webhook.
Update or disconnect
- Click Edit Configuration, change the values and click Update.
- Click Disconnect Thawani Pay and confirm.
Troubleshooting
- Invoice stays Sent after payment: check the webhook URL in Thawani and that the Webhook Secret matches.