3dstreet
3dstreet copied to clipboard
basic billing flow
disable "checkout stripe" button on click and show loading when the button is clicked
https://docs.stripe.com/checkout/quickstart
need to use success URL
put up variables in proper places. pricing table / price id. testing flow.
- loading
- improve success functionality
- add cancel functionality
if user has pro, show manage billing and hide subscribe. upon success show some congrats modal. add posthog events
things during test:
- clicking manage sub link needs a loading state
- note: adjusting user claims manually in DB to give pro access is dangerous -- it messes up the billing state assumptions with stripe
- write the steps for launching to production -- it's more than just the code, it's also getting stripe secret API keys for production project and saving them in google secret manager production project, naming them the same, give permissions to the cloud function invoker