3dstreet icon indicating copy to clipboard operation
3dstreet copied to clipboard

basic billing flow

Open kfarr opened this issue 1 year ago β€’ 4 comments

kfarr avatar Jun 12 '24 17:06 kfarr

disable "checkout stripe" button on click and show loading when the button is clicked

rahulkgupta avatar Jun 24 '24 15:06 rahulkgupta

https://docs.stripe.com/checkout/quickstart

need to use success URL

rahulkgupta avatar Jun 24 '24 15:06 rahulkgupta

put up variables in proper places. pricing table / price id. testing flow.

rahulkgupta avatar Jun 24 '24 16:06 rahulkgupta

  • 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

rahulkgupta avatar Jun 24 '24 22:06 rahulkgupta

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

kfarr avatar Jul 03 '24 20:07 kfarr