Basic workflow
Test Tamara checkout on your Odoo 19 store and verify how payments move through authorisation, capture, cancellation, and refunds.
At a glance: Complete a Sandbox checkout, capture the authorised payment, and verify the test results before going live.
Payment terms used in this guide:
- Authorisation approves a payment for later collection without collecting it.
- Capture collects an authorised payment.
- Void cancels an authorised payment before capture.
- Refund returns all or part of a captured payment.
Prerequisites
- Complete Installation and Admin configuration. Start with Sandbox mode for testing.
- Publish the provider and make it available on your website.
- Match the shop currency and billing country to a supported pair: Saudi Arabia with SAR, or the United Arab Emirates with AED.
- Make Odoo reachable over public HTTPS for webhook delivery (order-event notifications from Tamara), then save the Tamara settings after setting the public URL.
1. Complete checkout with Tamara
- Open your shop at
/shopand add products to the cart. - Go to Checkout and enter the customer's details, including a valid phone number and email address. Odoo hides Tamara if either is missing.
- Confirm that the billing country and shop currency match a supported pair.
- At the payment step, select Tamara (instalments).
- Confirm the payment. Odoo redirects you to Tamara's checkout page.
- Complete the Tamara flow by approving the instalment plan.
After you approve the instalment plan, Tamara redirects you to /payment/tamara/return. Odoo fetches the latest order from Tamara and updates the payment, typically to Authorized after approval and authorisation.
Odoo confirms the linked sale order through its normal payment post-processing. Authorisation does not collect the payment; capture happens separately.
2. Capture the payment
Capture collects the authorised payment. Use the method configured for your provider:
| Method | Action | Expected result |
|---|---|---|
| Manual capture | Select Capture Transaction on the authorised payment or sale order. | Odoo captures the full amount and records a success or failure note. |
| Automatic capture: Fully invoice | Fully invoice the linked sale order. | Odoo triggers full capture and records a success or failure note. |
| Automatic capture: Fully Delivered | Fully deliver the linked sale order. | Odoo triggers full capture and records a success or failure note. |
Review the notes on the payment and sale order to confirm capture succeeded. See Admin configuration for capture settings and note formats.
3. Verify your Sandbox test results
Use this checklist before going live:
- Product and cart widgets appear when you publish the provider and set the active mode's public key.
- Odoo hides Tamara when the billing phone number or email address is missing.
- Successful instalment approval returns you to Odoo and authorises the payment.
- A declined or cancelled payment flow cancels the Odoo payment and leaves a
Tamara:note. - Manual or automatic capture completes and records a success note.
- Webhook URL on the settings form matches your public HTTPS base URL.
Accessibility and inclusive wording checks
Test these interactions rather than assuming that language support also guarantees accessibility:
- Complete the checkout using only a keyboard. Check that you can reach and activate each field, payment option, and button, and that focus remains visible.
- Repeat the checkout with a screen reader. Check that it announces field labels, the Tamara payment option, validation errors, and payment status messages.
- Check the English and Arabic checkout labels. Confirm that each language clearly describes the same payment choices and outcomes.
- Review any checkout instructions you control. Use plain language, address the reader as “you”, and avoid gendered assumptions. Explain authorisation as approval for later collection and capture as collecting the payment.
Checkout behaviour and errors
Checkout and return handling
Odoo creates a Tamara checkout using PAY_BY_INSTALMENTS with three instalments, then redirects the customer to the returned checkout_url.
The payment transaction stores the Tamara order_id and checkout URL. The return route, /payment/tamara/return, fetches the order again from Tamara rather than trusting query-string status alone.
If checkout creation fails
| Audience | Message |
|---|---|
| Customer | Tamara payment is unavailable at this time, please choose another payment option |
| Admin | A note on the payment and linked sale order starts with Tamara: Cannot create the checkout session, error from Tamara: and includes the error details. |
The customer can choose another payment option. To investigate, review the admin note and follow Technical support.
Website widgets and eligibility
When you publish the provider and set a public key for the active mode, promotional widgets can appear:
- On the product page, above Add to Cart.
- On the cart page, above Checkout.
- At checkout, alongside the payment option labels and an inline widget.
Checkout labels support English and Arabic, with different wording for Saudi Arabia and other countries.
Before checkout, Odoo calls POST /pre-checkout/v1/eligibility with a short timeout. The check is fail-open (a failed eligibility call does not itself block checkout). Odoo still hides Tamara when the billing phone number or email address is missing.
Webhook behaviour
After you save the provider settings, Tamara sends order events to /payment/tamara/webhook.
Odoo verifies the notification JWT (JSON Web Token) with the Notification Token, using tamaraToken or the Authorization: Bearer header. The handler fetches the latest order using the payload's order_id instead of using event_type to decide the business action.
| Outcome on Tamara | Effect in Odoo |
|---|---|
| Approved | Automatically authorises the order on Tamara, then updates the Odoo payment. |
| Declined, expired, or cancelled | Cancels the Odoo payment if it is not already cancelled. Logs Tamara: Tamara payment for the order is declined/expired/cancelled on the payment and sale order. |
| Capture, refund, or partial cancellation status | Records a Tamara: note only. The webhook does not change the Odoo payment or sale order state for these statuses. |
Optional: Void or refund a payment
| Action | How to perform it | Behaviour |
|---|---|---|
| Void | Use Odoo's void action on an authorised payment. | Cancels the Tamara order before capture. |
| Refund | Use Odoo's payment refund flow. | Supports refunds, including partial amounts. |
Cancelling a sale order
When you cancel a sale order linked to a Tamara payment in Odoo:
- Odoo sends a cancellation to Tamara for the sale order amount.
- Odoo records success or failure as a
Tamara:note on the payment and sale order. - This cancellation path alone does not change the Odoo payment transaction state.
Next steps
If a test fails, collect the payment notes and diagnostic details described in Technical support.
Updated 1 minute ago
