Skip to main content
Who should use this guideThis guide is intended for merchants who:
  • Use Payrails as a payment orchestrator
  • Use Lean for open banking (Open Finance) payments in the UAE
  • Have access to the Lean application dashboard

Create a Lean integration in Payrails

  1. Log in to the Payrails portal.
  2. Go to Settings → Integrations.
  3. Select Add instance to create a new integration configuration.
  4. 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 Lean.
  • Continue to the next step.
A screenshot showing Lean selected as the provider.

Step 3: Configure your Lean integration

What you’ll need from LeanBefore you begin, make sure you can log in to the Lean application dashboard. You’ll copy your app ID and client secret there and set up a webhook.

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_lean.
A screenshot showing the integration instance name field.

Payment methods

In Payrails
  • Select Lean.
A screenshot showing the Lean payment method selection.

Account details

In Payrails A screenshot showing the Lean account details fields.

Credentials

In Payrails Payrails sends requests to the Lean sandbox in test mode and to the live environment in live mode, so use the credentials for the matching environment. A screenshot showing the Lean credential fields.

Webhooks or notifications

Payrails uses provider webhooks or notifications to receive asynchronous payment status updates.
Create webhooks in the same mode (test or live) as your Payrails integration.
In Payrails
  • Copy the Notification URL shown under Account configuration at the top of the integration form.
In Lean
  1. In the Lean application dashboard, add a webhook with the Payrails notification URL.
  2. Subscribe to the payment.initiation and payment.reconciliation.updated events.
  3. Copy the webhook secret into the Webhook Secret field in Payrails.

Request fields for Lean

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 Lean when you include them. For more about meta fields, refer to Meta fields. Lean confirms the transfer after the customer authorizes it, so use manual capture in your workflow. Payrails records the capture when Lean reconciles the payment.

Configure Lean settings

Some Lean integration settings change how Payrails processes your payments. The portal shows the same description when you hover over each setting.

Enable the integration

In Payrails
  • Select Save account to enable the integration.
  • Confirm the integration shows as Enabled.
Your Lean integration is now ready to process payments.

Next steps

  1. Run a test payment in AED with a Lean sandbox bank.
  2. Verify that:
    • Your customer can pick their bank and authorize the payment.
    • The payment status updates correctly in Payrails.
  3. Once verified in test mode, repeat the setup in live mode.
→ Continue to: Test a payment
Last modified on October 6, 2026