Command Palette

Search for a command to run...

Skip to content

Set up smart routing.

Configure routing rules to automatically direct payments to the best provider based on payment method, currency, amount, and more.

Writtenintermediate12 min

Overview

Smart routing is the core of Reevit's orchestration engine. Instead of hardcoding a single provider, you define rules that determine which connection handles each payment, with automatic failover when things go wrong.

How routing works

When a payment comes in, Reevit evaluates your routing rules in priority order:

  1. Match conditions: Currency, payment method, amount range, customer country
  2. Select connection: The first matching rule determines the primary connection
  3. Failover chain: If the primary fails, Reevit automatically tries the next connection in the chain

Default behavior. Without routing rules, Reevit uses your first-connected provider for all payments. Adding rules unlocks the full power of multi-provider orchestration.

Create your first routing rule

  1. Navigate to Routing Rules

    From your dashboard sidebar, click Routing → Rules. You'll see the rule builder interface.

  2. Click Create Rule

    Click Create Rule to open the rule builder. Each rule consists of conditions and a provider priority chain.

  3. Define conditions

    Set the conditions that trigger this rule. You can combine multiple conditions:

    • Currency: e.g., only match GHS payments
    • Payment method: e.g., only match mobile money
    • Amount range: e.g., payments over 1,000 GHS
    • Customer country: e.g., only customers from Ghana

    Example: Route all GHS mobile money payments through Hubtel.

  4. Set the provider chain

    Add connections in priority order:

    1. Primary: Hubtel (handles the payment first)
    2. Failover 1: Paystack (tries if Hubtel fails)
    3. Failover 2: Flutterwave (last resort)

    Each connection in the chain is tried sequentially if the previous one fails. This all happens within milliseconds, invisible to the customer.

  5. Set priority

    If you have multiple rules, drag them to set evaluation priority. Higher-priority rules are evaluated first. The first matching rule wins.

  6. Save and activate

    Click Save Rule. The rule takes effect immediately for new payments. Existing in-flight payments are not affected.

Example routing configuration

Here's a common setup for a business operating in Ghana and Nigeria:

RuleConditionsPrimaryFailover
Ghana Mobile MoneyCurrency: GHS, Method: mobile_moneyHubtelPaystack
Ghana CardsCurrency: GHS, Method: cardPaystackStripe
Nigeria CardsCurrency: NGN, Method: cardPaystackFlutterwave
International CardsCurrency: USD/EUR/GBPStripeFlutterwave

Automatic failover

When a payment fails at the primary provider, Reevit automatically:

  1. Detects the failure type (network error, declined, rate limit, provider down)
  2. Routes to the next connection in the chain
  3. Retries the payment with the same parameters
  4. Returns the result to your application, seamlessly

Failover is invisible. Your application receives one response. Whether it took 1 provider or 3, the API contract is identical. You can see the full routing path in the payment details.

Next steps

Stop losing payments to provider downtime.

Free for your first 1,000 payments a month, and failed payments are never billed. Connect a provider and take your first payment before the coffee gets cold.