A Multi-Gateway Payment Setup for Indie SaaS
Brief
The post describes how Supastack routes payments across four providers and keeps subscription entitlements unified.
Gateway roles
- Stripe is the default for US and EU cards; the post cites fees of 2.9% + 30¢ and says it handles cross-border sales tax registration poorly for solo founders.
- Polar or Creem handles global VAT/GST collection and remittance as Merchant of Record.
- Dodo Payments is used for regions such as India, LATAM and SEA, while RevenueCat unifies iOS App Store and Google Play purchases with web subscriptions.
Subscription and webhook design
- Keep database records independent of Stripe customer IDs; use a subscriptions table with provider_type, provider_sub_id, status and period_end.
- Store webhook idempotency keys in Redis or PostgreSQL; return HTTP 200 if an event ID was processed within the previous 24 hours.
- Route all four providers through one webhook handler that maps events to a single user entitlement state.
Generated by AI from the original article. Check the source for full details.