Menu

Selling a Laravel SaaS to India and the rest of the world: payments, tax and currency
📰

Selling a Laravel SaaS to India and the rest of the world: payments, tax and currency

DEV Community: laravel·Arun Tyagi·3 days ago
#kQ7TKgUk
#devtolaravel#devto#dev#gateway#saas
Long article (417 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.