//Payment Delivery Network
Intelligent Payment Delivery Network (PDN)
The PDN automatically routes checkouts to the most cost-effective and local-friendly provider based on geography.
Routing Logic
- India (IN): Prioritizes Razorpay for UPI/RuPay.
- Europe (EU): Prioritizes Mollie for iDEAL/SEPA.
- Global: Weighted split between GoCardless and Stripe.
POST /api/payments/checkout
Initiates a routed checkout session.Input: ~~~json { "amount": 5000, "currency": "USD", "country": "IN", "ip_address": "122.161.x.x" } ~~~
(Note: Providing ip_address allows the platform to automatically determine the optimal regional payment lane if country is generic or missing).
Response: ~~~json { "provider": "razorpay", "client_secret": "...", "public_key": "..." } ~~~