AITeky Learn
Major project Banking & Fintech Case Studio

Smart payment router with live learning

Inspired by publicly reported work at Razorpay

Send each payment to the gateway most likely to succeed, learn from results, and fail over when a gateway degrades.

The brief

Razorpay has described Optimizer, which routes each payment to the gateway most likely to succeed using models trained on past transactions, and falls back automatically when a gateway's success rate drops. Build a smart router of your own: a simulator of gateways whose success rates change, a model that predicts success per payment, a bandit that learns live, and automatic failover. Good looks like: success-rate uplift over fixed and round-robin routing in the simulator, quick reaction to an outage, cost-aware routing, and a dashboard.

Read the case first

What Razorpay has said in public about this kind of work, on its own pages:

Make it your own

Route something else between providers that fail: SMS gateways for OTPs, cloud regions for an app, or courier partners for parcels. Keep the same learning and failover, and change what success and cost mean.

AITeky has no link with Razorpay, which has not reviewed or endorsed this brief. The brief only draws on what the company has published, uses open data rather than its data, and is a learning exercise: don't present your project as Razorpay's work or system.

What you will build

  1. Build a gateway simulator with changing success rates, outages and fees
  2. Train a model that predicts success per payment and gateway
  3. Add a bandit that learns from live results
  4. Fail over automatically when a gateway degrades
  5. Compare uplift and cost against fixed and round-robin routing
  6. Build a routing dashboard

Free, open data to build it with

Sign up free to get the data and links

It takes a minute with your email. AiTeky Pass (₹999/month or ₹9,999/year) is free for your first 30 days.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in