UPI & Paytm Cascading Routing

Stop Losing 15% of Sales to
Gateway & UPI Failures

When Razorpay, Paytm, or any other payment gateway faces outages, downtime, or high bank-side latency, checkouts drop. Route requests through MirApi to automatically cascade to backup providers with 0 code changes.

✓ No credit card required ✓ Setup in under 2 minutes
# Direct proxy calls. Send payload directly to proxy root URL
POST https://proxy.mirapi.io \
  -H "X-MirApi-Key: mir_live_xyz..." \
  -H "X-Target-URL: https://api.razorpay.com/v1/payments" \
  # Configure failover parameters:
  -H "X-Failover-URL: https://api.paytm.com/v1/payments" \
  -H "X-Attempt-Timeout: 1800ms" \
  -H "X-Retry-Count: 2" \
  -d '"amount": 25000, "currency": "INR"'
# Define priority list in MirApi dashboard, call proxy root URL
POST https://proxy.mirapi.io \
  -H "X-MirApi-Key: mir_live_xyz..." \
  # Resolves multiple targets: Razorpay ➔ Cashfree ➔ Paytm
  -H "X-Route-Key: india-upi-cascade" \
  -d '"amount": 25000, "currency": "INR"'

Why E-Commerce & SaaS Brands Use MirApi

A simple developer-first proxy that intercepts gateway failures and routes around them automatically.

Without MirApi
  • Gateway outages or bank-side latency hang the connection, causing checkout screen spin & abandonment.
  • Developers spend weeks writing complex fallback retry rules and multi-provider integrations.
  • A 502/504 gateway response from Razorpay means lost revenue and support tickets.
With MirApi Proxy
  • Proxy detects gateway downtime or bank-side lag (e.g. >1800ms) and transparently cascades to Cashfree or backup providers.
  • No SDK required. Integrates in minutes by changing the API host and appending custom headers.
  • Rescues failing payments automatically, keeping conversion rates high even during gateway downtime.
Database-Configured Routes

Cascade Across 3+ Providers with X-Route-Key

For complex cascades, direct headers can feel limiting. MirApi allows you to pre-define multi-target routes inside the Dashboard database and execute them with a single configuration key.

1

Define Route & Targets

Create a route (e.g., india-upi-cascade) and list target URLs with their sequential priorities (Priority 1: Razorpay, Priority 2: Cashfree, Priority 3: Paytm).

2

Dynamic Body Mapping (BodyMap)

Each payment gateway expects a different payload layout. MirApi evaluates JSONPath mappings on-the-fly to transform your request body to fit each gateway's spec.

3

Per-Target Connection Rules

Set custom attempt timeouts and error validation rules for each individual target, preventing slow gateways from holding up your checkout thread.

Priority Cascade Pipeline
1 Razorpay (Primary)
Timeout (1800ms)
2 Cashfree (Fallback 1)
Status: 502 Bad Gateway
3 Paytm (Fallback 2)
Rescued successfully ✓
< 2ms
Internal Latency Overhead
Singapore
Edge Node Deployment
10,000
Free Requests Monthly
100%
PCI-DSS Compliant (Auto-Redacted)

Deploy UPI Resilience Today

Protect your payment infrastructure in minutes. Sign up for our developer-friendly Free Forever plan with 10k requests/month.

Get Your Free API Key