Tabby Payments (Buy Now, Pay Later)
Let customers pay in instalments with Tabby in the UAE and Saudi Arabia: hosted checkout, server-side verification, automatic or manual capture, refunds and authenticated webhooks.
What it does
Adds Tabby as an Odoo payment provider. When a customer pays an order, invoice or payment link with Tabby, Odoo creates a Tabby checkout session with the order details and sends the customer to the Tabby payment page; when Tabby approves, the payment is captured and the order is confirmed.
The return page and every webhook are only signals: Odoo reads the payment back from Tabby, checks its amount, currency and order reference to the fils/halala, and only then changes the transaction. Captures and refunds carry Tabby idempotency keys, so nothing is captured twice.
For merchants in the UAE (api.tabby.ai) and Saudi Arabia (api.tabby.sa), in AED and SAR, in English and Arabic.
Demo video
The video loads from YouTube (privacy-enhanced mode) when you press play. Watch on YouTube
Features
| Feature | What it does |
|---|---|
| Hosted checkout | A fresh Tabby session for every attempt, with buyer, shipping address, order lines (or one line when they do not add up to the cent), buyer history and language. |
| Verified payments | Return page and webhooks trigger a server-to-server read; amount, currency, payment id and order reference must match before anything changes. |
| Authenticated webhooks | Tabby webhooks carry the header key you registered; webhooks without it are refused. Unknown payments get a retry answer, as Tabby recommends. |
| Capture | Full capture right after approval (default) or from the back office; a database claim plus Tabby's idempotency key prevent a double capture. |
| Void and refunds | Close an uncaptured payment; full and partial refunds, each with its own key. |
| Rejections | Tabby's approved English and Arabic messages when Tabby declines or the customer cancels. |
| Missed returns | A scheduled check reads open payments again, for customers who closed the browser before coming back, and retries failed captures. |
| History | One row per Tabby call and webhook, refused ones included; keys visible to administrators only and never logged. |
Setup
- Install the module. In Odoo: Invoicing/Accounting or Website > Configuration > Payment Providers > Tabby.
- Choose the Region (UAE or Saudi Arabia), enter the Merchant Code and the Secret Key from the Tabby merchant dashboard (sk_test_... for test payments, sk_... for live ones), and click Test Connection.
- Make sure web.base.url is the public https address of your Odoo, then click Register Webhook: Odoo registers its webhook at Tabby with a new random key.
- Set the provider to Test Mode or Enabled and publish it. Optional: tick Capture Amount Manually to capture from the back office instead of right after approval.
Requirements
- Odoo 17, 18, 19 or 20, Community edition
- Odoo apps: Payment
- Python requests on the Odoo server
What it does not do
- The Tabby promo snippets on product and cart pages and the background pre-scoring call (website widgets): Tabby's own decision at checkout is used instead.
- Disputes and dispute webhooks, Tabby in-store (POS) and Tabby payment links.
- Partial captures (full capture or close only).
- Currencies other than AED and SAR.
Tests
| Odoo | Tests passed | Last run |
|---|---|---|
| 17 | 69 | |
| 18 | 69 | |
| 19 | 69 | |
| 20 | 69 |
The tests ship with the module source, so you can run them on your own server.
Questions
Which key do I enter?
The secret key from the Tabby merchant dashboard. A test key (sk_test_...) creates test payments, a live key live ones: the key decides, not the provider state.
Why must the webhook be registered?
Tabby notifies Odoo when a customer pays but closes the browser before coming back. Without the webhook, the scheduled check still catches these payments within about ten minutes.
Can someone fake a Tabby webhook?
A webhook without the registered key is refused. One with the key still changes nothing by itself: Odoo reads the payment from Tabby and follows Tabby's answer.
Is the customer charged twice if the webhook and the return page arrive together?
No. Only one of them can claim the capture, and both use the same Tabby idempotency key.
What does the customer see when Tabby declines?
Tabby's approved message, in English or Arabic, and the other payment methods.
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.