I recently deployed a full Stripe subscription system on SunderDev itself.
Recommended architecture
- Stripe-hosted Checkout (PCI compliance offered).
- Webhooks as source of truth.
- Customer Portal for upgrades/cancellations.
- Idempotency keys on all creations.
Pitfalls to avoid
- Never trust success_url to activate an account.
- Timezones: always convert Unix timestamps explicitly.
- Mid-cycle plan changes create credit lines, test them.