Kiran Pal Singh
← All work

Payments · Sitepresso

Three payment gateways behind one interface

Why Razorpay, Stripe and Paddle sit behind a single region-routed layer.

3
payment gateways
1
interface for the product team
GST
and HSN tax handled

The problem

Different regions need different payment gateways. Three gateways means three integrations, three webhook formats and three sets of edge cases to maintain forever.

What I decided

One region-routed abstraction, with the gateway chosen by the tenant's region, not by the code path. The trade-off: the abstraction only offers what all three gateways can do, so gateway-specific features are left out by design.

What shipped

Subscriptions, invoicing, credit notes and India GST and HSN tax handling, across Razorpay, Stripe and Paddle, behind one interface. Adding a region became a configuration change, not an integration project.

Next role

Senior technical program, project and product roles.

In India, New Zealand or remote.