Skip to main content

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.

Available withBookings or SalesIncluded in the Complete plan.Plans and modules

Before you start​

  • You need the Administrator or Owner role.
  • Have access to your Thawani Pay merchant portal.

Connect Thawani Pay​

  1. 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.

    The Integrations page with the Thawani Pay card highlighted
Thawani Pay Configuration form with public key, secret key, webhook secret and the Webhook Settings card
  1. In the Thawani merchant portal, go to Settings > Developers and click Create Key.
  2. Paste the keys into Public Key and Secret Key in Whautomate.
Thawani Pay merchant portal Developers page with the Create Key button
  1. In the Webhook Settings card, click Copy next to Webhook callback URL.
  2. In Thawani, go to Settings > Developers, click New Webhook, paste the URL and click Save.
  3. Copy the webhook secret Thawani shows (it starts with whsec_) and paste it into Webhook Secret in Whautomate.
Thawani Pay webhook secret key shown after creating the webhook
  1. Click Save. You see "Thawani Pay Gateway settings saved. Please make sure to configure your webhook."

Test it​

  1. Create a small invoice for yourself, tick Request payment via WhatsApp and click Save and Send.
  2. Open WhatsApp and tap Make Payment.
  3. 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.