1
0 Comments

Added a new subscription plan

I set up a new Pro plan for Docploy. It was quite a wild ride because I ended up switching the database halfway through the process. I started using Supabase, but I saw that the database hooks were not recommended for production, so I ended up switching to use Firestore.

The biggest challenge was making the switch from test Stripe to prod Stripe. I got the end to end billing flow working locally, but I had issues when I deployed the code to production. I switched all of the environment variables in Vercel for Stripe... or so I thought. There were a few things that I forgot to update:

  • Webhook urls
  • Restricted API keys
  • Syncing the new keys to the Firebase Stripe Payments extension in Firebase

Even if your flow works in testing, make sure to test your production flow because it's easy to forget to sync up the correct keys.

, Founder of Icon for Docploy
Docploy
on August 6, 2022
Trending on Indie Hackers
I shipped a productivity SaaS in 30 days as a solo dev — here's what AI actually changed (and what it didn't) User Avatar 304 comments I built a tool that shows what a contract could cost you before signing User Avatar 109 comments The coordination tax: six years watching a one-day feature take four months User Avatar 72 comments My users are making my product better without knowing it. Here's how I designed that. User Avatar 60 comments I changed AIagent2 from dashboard-first to chat-first. Does this feel clearer? User Avatar 31 comments Stop Treating Prompts Like Throwaway Text User Avatar 14 comments