Many SaaS products built in India want customers in two very different markets: Indian businesses that expect rupee pricing, UPI or card payments and GST invoices, and international customers who expect dollars, cards and a Stripe-like checkout. Here is how I structure the billing side of a Laravel SaaS so it can serve both without turning into a mess of if-statements.
1. Keep billing behind your own interface
Don't call a payment gateway SDK from controllers. Define a small BillingGateway interface in your app (create customer, start subscription, cancel, handle webhook) and implement it once per provider. Laravel Cashier covers Stripe well; for an Indian gateway such as Razorpay you will usually write a thin service class yourself.
Decide which gateway a tenant uses when they sign up (often by billing country) and store it on the tenant. Everything else in the app asks the interface, not the provider.
2. Store money as integers, with a currency
Store amounts in the smallest unit (paise, cents) as integers, alongside a currency code. Never mix currencies in one column without the code next to it. Plans can have one price per currency rather than converting on the fly, which keeps invoices and refunds predictable.
3. Treat webhooks as the source of truth
The redirect after checkout is not proof of payment. Mark a subscription active only when the provider's signed webhook arrives. Store every webhook payload, verify the signature, and make the handler idempotent, because providers retry deliveries.
4. Invoices and tax
Indian B2B customers usually need a proper tax invoice with your GSTIN, their GSTIN if they provide one, and the correct tax breakdown. Generate your own invoice records and PDFs in the app instead of relying only on the gateway's receipts, and keep invoice numbers sequential per financial year. Tax rules change, so keep rates in configuration, and confirm the details with your accountant rather than hard-coding assumptions.
5. Handle failed payments gracefully
Cards expire and mandates fail. Give customers a grace period, send reminders, and limit features rather than deleting data. Make "update payment method" one click away.
6. Test with both providers in sandbox mode
Write feature tests that fake the gateway interface, and keep a short manual checklist for each provider's sandbox: new subscription, upgrade, downgrade, failed renewal, refund and cancellation.
I'm Arun Tyagi, a Laravel developer in Noida, India. I build SaaS products with multi-tenancy and billing for founders in India, Dubai and the US. More about my work: Laravel SaaS development.
