Intelligent Routing
Last updated
Was this helpful?
Last updated
Was this helpful?
Intelligent Routing is a smart payment routing system that helps businesses choose the best way to process payments by adjusting routing rules in real time.
Unlike static routing, which follows fixed rules, Intelligent Routing uses up-to-the-minute data—such as success rates, past transaction patterns, and processor issues. By combining past data with real-time insights, it picks the best processor for each payment.
This automation saves businesses from manually updating rules, adapting automatically to current conditions for smoother, more efficient payment processing.
Hyperswitch supports three intelligent routing strategies:
Success-Based Routing: Routes payments to processors with the highest historical success rates.
Elimination Routing: Avoids processors experiencing issues or with lower success rates.
Contracts-Based Routing: Distributes payments across processors to meet contractual volume commitments.
Boosted Conversion Rates: Intelligent Routing directs payments to processors with the highest success rates, using real-time data and past patterns. For example, if a particular card type is approved more often with a certain processor, payments with that card are routed there.
Regional Optimization: For global businesses, Intelligent Routing sends payments to processors that perform best in each area. This means using processors with strong connections in Europe for EU payments and ones with strong U.S. connections for payments in the U.S.
Meeting Volume Commitments: Intelligent Routing keeps track of the transaction numbers required by contracts with each processor and distributes payments to meet these targets while maintaining high success rates.
Real-Time Outage Handling: If a processor is down, Intelligent Routing avoids it and reroutes payments to working processors. When the processor is stable again, it gradually resumes use.
To try success-based routing, which routes payments to processors with the highest historical success rates, follow these steps:
Enable Success-Based Routing for your profile: There are three options when enabling:
metrics: Stores entries in the dynamic_routing_stats
table and provides metrics on how payments would have been routed using success-based routing (analysis only).
dynamic_connector_selection: Actually routes payments through success-based routing.
none: Disables success-based routing.
Configure the volume of payments sent through intelligent-routing:
Monitor performance: You can check the dynamic_routing_stats
table for entries to analyze the performance of your intelligent routing configuration. Key fields in the dynamic_routing_stats table:
payment_id: Unique identifier for the payment transaction
success_based_routing_connector: The connector suggested by intelligent routing for optimal success
payment_connector: The actual connector through which the payment was processed
payment_status: Current status of the payment attempt (succeeded, failed, etc.)
conclusive_classification: Classification of the routing decision's effectiveness