This section assumes you have connected your payment gateways. Visit the payment gateway page to learn more.
How smart routing rules work
A customer initiates a ₦50,000 payment via the card payment method on your platform.


How to set your smart routing rules
Step 1: Set the name and priority of your routing rule.
Step 1: Set the name and priority of your routing rule.
- Log in to your merchant account.
- Navigate to “Payment Gateways” > “Smart Routing”.
- Click the “First Rule” button.
- Enter your rule name and an optional description field. The priority field, which is automatically set to 1 on your first rule, represents the order in which the rule should be executed. I.e., a rule with priority 1 runs before one with priority 2.
You can drag and reorder rules based on your preference.

Step 2: Set the condition to execute this rule.
Step 2: Set the condition to execute this rule.
Set your currency, payment methods, country, minimum amount, and maximum amount. This determines when the rule applies.For example, execute this rule when customers make card payments between ₦100 and ₦50,000.

Step 3: Select your payment gateway order.
Step 3: Select your payment gateway order.
Select the payment gateways and the order in which Archefusion should route transactions. If the first gateway is unavailable or unhealthy, Archefusion automatically moves to the next one.For example, if the provider order is Flutterwave → Paystack → Monnify, Archefusion will attempt Flutterwave first. If it is unavailable, it moves to Paystack, then Monnify.
You can only add configured payment gateways to your failover strategy.

Step 4: Configure timeout and retry behavior.
Step 4: Configure timeout and retry behavior.
Set how Archefusion should handle unresponsive gateways during payment routing.
- Timeout (ms): The time Archefusion waits for a payment gateway to respond before considering it unresponsive and moving to the next gateway.
- Max retries: The maximum number of times Archefusion should retry a transaction across all gateways before considering it as failed.
- Attempts per gateway: The number of times Archefusion should retry a single gateway before moving to the next one.
- Base delay (ms): The initial wait time before retrying an unresponsive gateway.
-
Backoff strategy: Determines how the wait time changes between retries. Accepted values:
- Exponential: Doubles the base delay on each retry. If the base delay is 2 seconds, the wait time doubles on each subsequent retry: 4 seconds, then 8 seconds, then 16 seconds.
- Fixed: The base delay remains constant on each retry. If the base delay is 2 seconds, the wait time remains 2 seconds before attempting the next retry.
- Max delay (ms): The maximum wait time between retries. It is triggered when the backoff strategy’s wait time increases on subsequent retries.
- Jitter (ms): Applies a random wait time (from 0 to the configured value) to spread retries so concurrent transactions during high-traffic periods don’t overwhelm the payment gateway at the same moment.

Step 5: Save your smart routing rule.
Step 5: Save your smart routing rule.
Click the “Save Rule” button to save your changes.
Repeat this process for each new smart routing rule you want to create. For example, you can set up a separate rule for bank transfers or for transactions above or below a certain amount, depending on your preference.
Next step
Register your webhook endpoint with Archefusion to receive payment outcome notifications.

