Who should use this guideThis guide is intended for merchants who:
- Use Payrails as a payment orchestrator
- Use Payrails to offer Tamara buy now, pay later
- Have an active Tamara merchant account with access to the Tamara Partner Portal
Create a Tamara integration in Payrails
- Log in to the Payrails portal.
- Go to Settings → Integrations.
- Select Add instance to create a new integration configuration.
- Select the workspaces where this integration should be available.
About workspacesWorkspaces determine where this integration is available. They let you isolate provider setups by region or business line, or share the same configuration across multiple workspaces.
Step 1: Choose the integration type
- Select Payment.
- Continue to the next step.
Step 2: Choose the provider
- Select Tamara.
- Continue to the next step.

Step 3: Configure your Tamara integration
Integration instance name
An integration instance is a specific payment provider setup in Payrails. You can create multiple instances for different regions, currencies, or business needs. Choose a clear, consistent name, as it is used in routing.In Payrails
- Enter an Instance name for your integration, for example
merchant_tamara.

Credentials
In Tamara- Get the API token, notification token and widget token for your merchant account from the Tamara Partner Portal, or ask your Tamara account manager.
Payrails sends requests to the Tamara sandbox in test mode and to the live environment in live mode, so use the tokens for the matching environment.

Payment methods
In Payrails- Select Tamara.

Webhooks or notifications
Payrails uses provider webhooks or notifications to receive asynchronous
payment status updates.
- Copy the Notification URL shown under Account configuration at the top of the integration form.
- In the Tamara Partner Portal, go to Settings → General Settings → Webhooks, and select Add webhooks.

- Enter the following, then select Create Webhook:
- Type: select Order.
- Events: select Approved, which Tamara requires, plus Authorised, Declined, Expired, Canceled, Captured and Refunded.
- URL: paste the Payrails notification URL.

- Tamara confirms that the webhook is added.

Request fields for Tamara
Send these fields in the authorize request, in addition to the standard authorize fields. Required fields must be present for the payment to succeed. Payrails sends Optional fields to Tamara when you include them. For more about meta fields, refer to Meta fields.
Tamara payments use manual capture, so build your workflow with manual capture. Payrails captures the payment when you send a capture. You can also turn on auto-capture for your account in Tamara.
Enable the integration
In Payrails- Select Save account to enable the integration.
- Confirm the integration shows as Enabled.
Next steps
- Run a test Tamara payment in the Tamara sandbox.
- Verify that:
- Your customer is redirected to Tamara and back to your site.
- The payment appears in the Tamara Partner Portal.
- The payment status updates correctly in Payrails.
- Once verified in test mode, repeat the setup in live mode.