Odoo 19 app

Thawani Payment Gateway

Take Thawani Pay payments in Odoo 19, refund them from Odoo and let customers save their card

ThawaniThawani PayThawani CheckoutOman payment gatewayOMRVisaMastercard

What it does

Adds Thawani as a payment provider. Odoo opens a Thawani checkout session, sends the customer to the Thawani payment page, and marks the order or invoice paid only after it has read the session back from Thawani or received a signed webhook.

Features

Thawani checkout pagecard data is typed on the Thawani page, never in Odoo; works for the shop, invoices and payment links
Signed webhookthe thawani-signature header is checked with your webhook secret before anything is read; a wrong signature gets HTTP 403
Amount and currency checkthe paid total in baisa and the currency must match the transaction, or the payment goes to error
Refunds from Odoofull or partial, sent with the Thawani payment ID; a refund that is not final yet is followed up by the scheduled action
Saved cardswith saving allowed, the card stays on Thawani and the next order is paid with a payment intent
Status check and canceltwo buttons on the transaction: read the session from Thawani, or cancel it so the link stops working
Order linesthe sale order lines are shown on the Thawani page when their total matches what is paid
UAT and productionTest mode uses uatcheckout.thawani.om, Enabled uses checkout.thawani.om
API logevery call and webhook, with the API key and customer contact details masked