Admin configuration
Configure Tamara credentials, payment availability, capture behaviour, and webhooks in Odoo 19.
Connect your Odoo 19 store to Tamara: select a mode, enter credentials, enable payments, choose when to collect payments, and verify webhooks (automatic order status notifications).
Prerequisites
- Complete Installation.
- Log in with Administrator / Settings access. If you lack this access, ask your Odoo administrator to grant it or complete the configuration.
- Obtain Sandbox or Live credentials from the Tamara merchant portal for the environment you plan to use.
- Make Odoo reachable at a public HTTPS URL for webhook delivery, using your public deployment, reverse proxy, or a tunnel such as ngrok.
1. Open Tamara settings
Open Home menu → Payment Gateway - Tamara → Settings.
In these menu paths, the arrow (→) means “then select.” Bold text matches on-screen labels. The provider form is the Tamara payment settings form.
Alternatively, open the same provider form from Home menu using any of these paths:
- Website → Configuration → eCommerce → Tamara
- Accounting → Configuration → Payment Providers → Tamara
- Website → Configuration → Payment Providers → Tamara
2. Select the mode
Set Tamara Mode to the environment you want to use:
| Mode | Behaviour |
|---|---|
| Disabled | Turns Tamara off. You can save without credentials. |
| Sandbox | Uses sandbox APIs and Sandbox credentials for testing. Confirm the mode using the Tamara Mode field or the Sandbox Mode ribbon. |
| Live (Enabled) | Uses production APIs and the Live credential group for real payments. |
Sandbox and Live have separate API tokens, notification tokens, public keys, webhook IDs, and webhook URLs. Switching mode does not copy values between the groups.
3. Enter credentials
Under Configuration, fill in the credential group that matches your selected mode. Use values from the Tamara merchant portal for that environment.
An API token is a secret credential that lets Odoo authenticate requests to Tamara. Keep API tokens and notification tokens private.
| Field | Requirement | Purpose |
|---|---|---|
| API Token (Merchant Token) | Required in Sandbox and Live | Authenticates Odoo requests to Tamara. |
| Notification Token | Required in Sandbox and Live | Verifies webhook notifications using a JWT (JSON Web Token, a token containing signed data) / Bearer token. |
| Public Key | Required in Sandbox and Live | Displays promotional widgets (page elements that show Tamara promotions) on product, cart, and checkout pages. |
| Webhook ID | Read-only | Check this field for the webhook ID after you save successfully. |
| Webhook URL | Read-only | Copy the full registered URL from this field. It typically ends in /payment/tamara/webhook. |
Read-only fields display values that Odoo sets; you cannot edit them directly.
Odoo uses the API token for checkout, eligibility checks, capture (collecting an authorised payment), voids (cancelling an authorisation), refunds, and webhook registration. Registering a webhook tells Tamara where to send order status notifications.
Odoo blocks saving if required credentials are missing and lists the fields you need to complete.
4. Set payment availability
- Keep Tamara Mode set to Sandbox or Live, not Disabled.
- Publish or enable the provider using your Odoo 19 payment setup so it can appear at checkout.
- Review Configuration → Availability and any country or currency restrictions.
The add-on supports these countries and currencies:
| Country | Country code | Currency |
|---|---|---|
| Saudi Arabia | SA | SAR |
| United Arab Emirates | AE | AED |
Product and cart widgets appear only when you publish the provider and set a public key for the active mode.
5. Choose order capture behaviour
An authorised payment has approval but does not yet represent collected funds. Capture collects that payment. In Order Capture, set Action to trigger Order Capture:
| Option | Behaviour |
|---|---|
| Select an action | Odoo does not capture automatically. Leave the payment authorised or capture it manually. |
| Fully invoice | Odoo captures the full authorised amount once invoicing covers the entire linked sale order. |
| Fully Delivered | Odoo captures the full authorised amount once delivery covers the entire linked sale order. |
You can also capture the full amount manually using Capture Transaction on an authorised payment or sale order.
Odoo records capture success or failure as notes on the payment and sale order:
- A success note starts with
Tamara: Order captured successfully.and includes the capture amount and ID. - A failure note starts with
Tamara: Capture action on Tamara side failed, error from Tamara:and includes the error details.
6. Save and verify webhooks
Select Save on the provider form. When you enable the provider and enter an API token, Odoo:
- Validates the required credentials for the selected mode.
- Registers the webhook URL with Tamara through
POST /webhooks. - Stores Webhook ID and Webhook URL for that mode.
After you save successfully, confirm that both webhook fields contain values. Check that Webhook URL starts with your public HTTPS base URL (the root address of your Odoo site).
Odoo registers the webhook for these events:
order_approvedorder_declinedorder_authorisedorder_canceledorder_capturedorder_refundedorder_expired
The registered webhook uses your Odoo base URL. If you change your public base URL:
- Reopen Payment Gateway - Tamara → Settings.
- Select Save to register the webhook against the new URL.
- Check that Webhook URL reflects the new public HTTPS base URL.
Troubleshooting
| Issue | Action |
|---|---|
| Missing credential validation error | Complete every required field in the credential group for the selected mode. |
Wrong API Token on save | Confirm that the API token matches Sandbox or Live and is current in the merchant portal. |
| Product or cart widgets do not appear | Publish the provider and set the public key for the active mode. |
| Webhooks do not reach Odoo | Confirm that Odoo is publicly reachable over HTTPS. Check the base URL and save the settings again after changing it. |
Optional: Collect diagnostic details
Use the troubleshooting fields on the provider form when investigating an issue:
| Field | Purpose |
|---|---|
| Debug mode | Logs Tamara API requests and responses to the server log with the prefix Tamara -. Enable it only while diagnosing an issue, then turn it off. |
| Versions | Include the Odoo, Python, and Tamara Payment add-on versions from this read-only field in support requests. |
Redact secrets before sharing log excerpts. Follow Technical support to collect and send diagnostic details.
Next steps
Place a test order using Basic workflow. If configuration or testing fails, see Technical support.
Updated 1 minute ago
