Tamara Payments (Buy Now, Pay Later)
Let customers split payments with Tamara in Saudi Arabia, the UAE, Bahrain, Kuwait and Oman: hosted checkout, order authorisation, capture on shipping, cancellation, refunds and signed webhooks.
What it does
Adds Tamara as an Odoo payment provider. A customer who pays an order, invoice or payment link with Tamara is sent to the Tamara checkout page; when Tamara approves the order, Odoo authorises it (as Tamara requires) and the sale is confirmed. The amount is captured when you ship, from the back office, or right away if you prefer.
Return pages and webhooks are only signals: Odoo reads the order back from Tamara and checks its reference, currency and total to the halala/fils before anything changes. Webhooks must carry a tamaraToken signed with your notification token.
Sandbox in Test Mode, production when enabled. SAR, AED, BHD, KWD and OMR; checkout in English or 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 Tamara checkout session per attempt, with items (or one line when they do not add up), consumer, addresses, tax, shipping, locale and the risk-assessment fields. |
| Verified orders | Every return and webhook triggers a read of the order; reference, currency and total must match before the transaction changes. |
| Signed webhooks | The tamaraToken (HS256 JWT) must verify with your notification token and be unexpired; other algorithms, other keys and missing tokens are refused. |
| Authorisation | Approved orders are authorised automatically, by the webhook, the return page or the scheduled check, never twice. |
| Capture and cancel | Capture on shipping with the shipping company Tamara asks for, or at once; cancel an authorised order from the back office. |
| Refunds | Full and partial; before each refund Odoo compares Tamara's refunded total with its own, so a refund whose answer was lost is never sent twice. |
| Scheduled check | Reads open orders again (Tamara's pull mechanism) for customers who never came back and orders captured by Tamara after 21 days. |
| History | One row per Tamara call and webhook, refused ones included; tokens visible to administrators only and never logged. |
Setup
- Install the module. In Odoo: Invoicing/Accounting or Website > Configuration > Payment Providers > Tamara.
- Enter the API Token and the Notification Token from the Tamara merchant portal (sandbox tokens for Test Mode), and the Shipping Company name to send with captures. Click Test Connection.
- Make sure web.base.url is the public https address of your Odoo, then click Register Webhook.
- Set the provider to Test Mode or Enabled and publish it. Capture Amount Manually is on by default: capture when the order ships (Tamara captures by itself after 21 days).
Requirements
- Odoo 17, 18, 19 or 20, Community edition
- Odoo apps: Payment
- Python requests on the Odoo server
What it does not do
- Tamara widgets, the pre-checkout eligibility and pre-qualification calls.
- In-store checkout and QR codes, dispute webhooks.
- Partial captures and partial cancellations (full capture or cancel; partial refunds are supported).
Tests
| Odoo | Tests passed | Last run |
|---|---|---|
| 17 | 68 | |
| 18 | 68 | |
| 19 | 68 | |
| 20 | 68 |
The tests ship with the module source, so you can run them on your own server.
Questions
When is the order paid in Odoo?
When Tamara authorises it: the transaction is authorized and the sale is confirmed. The capture tells Tamara the order shipped.
Do I have to capture?
Capture when you ship. If you never do, Tamara captures by itself 21 days after authorisation and Odoo picks it up in the scheduled check.
What protects the webhook?
Tamara signs every notification with your notification token (tamaraToken). Odoo verifies it, then reads the order from Tamara anyway before changing anything.
Can a refund be sent twice?
No. Before each refund Odoo reads the order: if Tamara already refunded more than Odoo knows, it stops and asks you to check the Tamara merchant portal.
Which currencies?
SAR, AED, BHD, KWD and OMR, each with its own country, as Tamara requires.
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.