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:

ModeBehaviour
DisabledTurns Tamara off. You can save without credentials.
SandboxUses 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.

FieldRequirementPurpose
API Token (Merchant Token)Required in Sandbox and LiveAuthenticates Odoo requests to Tamara.
Notification TokenRequired in Sandbox and LiveVerifies webhook notifications using a JWT (JSON Web Token, a token containing signed data) / Bearer token.
Public KeyRequired in Sandbox and LiveDisplays promotional widgets (page elements that show Tamara promotions) on product, cart, and checkout pages.
Webhook IDRead-onlyCheck this field for the webhook ID after you save successfully.
Webhook URLRead-onlyCopy 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

  1. Keep Tamara Mode set to Sandbox or Live, not Disabled.
  2. Publish or enable the provider using your Odoo 19 payment setup so it can appear at checkout.
  3. Review Configuration → Availability and any country or currency restrictions.

The add-on supports these countries and currencies:

CountryCountry codeCurrency
Saudi ArabiaSASAR
United Arab EmiratesAEAED

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:

OptionBehaviour
Select an actionOdoo does not capture automatically. Leave the payment authorised or capture it manually.
Fully invoiceOdoo captures the full authorised amount once invoicing covers the entire linked sale order.
Fully DeliveredOdoo 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:

  1. Validates the required credentials for the selected mode.
  2. Registers the webhook URL with Tamara through POST /webhooks.
  3. 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_approved
  • order_declined
  • order_authorised
  • order_canceled
  • order_captured
  • order_refunded
  • order_expired

The registered webhook uses your Odoo base URL. If you change your public base URL:

  1. Reopen Payment Gateway - Tamara → Settings.
  2. Select Save to register the webhook against the new URL.
  3. Check that Webhook URL reflects the new public HTTPS base URL.

Troubleshooting

IssueAction
Missing credential validation errorComplete every required field in the credential group for the selected mode.
Wrong API Token on saveConfirm that the API token matches Sandbox or Live and is current in the merchant portal.
Product or cart widgets do not appearPublish the provider and set the public key for the active mode.
Webhooks do not reach OdooConfirm 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:

FieldPurpose
Debug modeLogs Tamara API requests and responses to the server log with the prefix Tamara -. Enable it only while diagnosing an issue, then turn it off.
VersionsInclude 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.

Odoo 19 overview


Did this page help you?