PayTabs Payments (Hosted Payment Page)
Take payments in Odoo through the PayTabs Hosted Payment Page in Saudi Arabia, the UAE, Egypt, Oman, Jordan, Kuwait, Iraq, Morocco, Qatar or Global: signed callbacks and return pages, verified transactions and refunds.
What it does
Adds PayTabs as an Odoo payment provider. Odoo creates a payment page on the PayTabs instance of your region and sends the customer there, in English or Arabic; no card data reaches Odoo.
Return pages and callbacks are checked with PayTabs' HMAC-SHA256 signatures and then only make Odoo query the transaction, which must match the cart, currency, amount and type before an order is confirmed. Payments on anti-fraud hold stay pending.
Full and partial refunds from Odoo; an earlier refund whose answer was lost is looked up before a new one is sent.
Demo video
The video loads from YouTube (privacy-enhanced mode) when you press play. Watch on YouTube
Features
| Feature | What it does |
|---|---|
| Hosted payment page | On your region's PayTabs host, English or Arabic, customer details prefilled. |
| Signed callbacks | The Signature header must be the HMAC-SHA256 of the body with your server key. |
| Signed return pages | The return POST signature is verified (PayTabs' published algorithm) before Odoo reads anything. |
| Verified transactions | A query by tran_ref must match cart id, currency, amount and type; A = paid, H = held for review, P = pending, D/E/V = cancelled with the code. |
| Refunds | Full and partial; lost refund answers are looked up before a new refund. |
| All regions | KSA, UAE, Egypt, Oman, Jordan, Kuwait, Iraq, Morocco, Qatar and Global. |
| History | One row per PayTabs call and callback; the server key is visible to administrators only and never logged. |
Setup
- Install the module. In Odoo: Invoicing/Accounting or Website > Configuration > Payment Providers > PayTabs.
- Choose the Region of your PayTabs account (your dashboard address with "merchant" replaced by "secure"), enter the Profile ID and the Server Key (Developers > Key management). Click Test Connection.
- Make sure web.base.url is the public https address of your Odoo: each payment tells PayTabs where to return the customer and where to post its callback.
- Publish the provider. A test profile makes test payments; a live profile live ones.
Requirements
- Odoo 17, 18, 19 or 20, Community edition
- Odoo apps: Payment
- Python requests on the Odoo server
What it does not do
- Authorise/capture/void, saved cards and recurring payments.
- PayTabs' card forms inside your own page (they would put card data in Odoo's scope).
- Invoices and pay-by-link.
Tests
| Odoo | Tests passed | Last run |
|---|---|---|
| 17 | 59 | |
| 18 | 59 | |
| 19 | 59 | |
| 20 | 59 |
The tests ship with the module source, so you can run them on your own server.
Questions
Which region do I choose?
The one of your merchant dashboard: merchant.paytabs.sa is KSA, merchant.paytabs.com is UAE, and so on. A wrong region fails the connection test.
Can someone fake a payment confirmation?
Callbacks and return pages without a valid signature are ignored; valid ones only make Odoo ask PayTabs for the transaction.
What does "on hold" mean?
PayTabs authorised the payment but holds it for an anti-fraud review; the Odoo transaction stays pending until PayTabs decides.
Do I configure the IPN?
Not required: every payment carries its own callback address.
Selling in Saudi Arabia?
The ZATCA readiness review checks your Odoo setup against ZATCA Phase 2 e-invoicing for SAR 4,500, credited to the integration project.