Node-1st-gen/stripe/README.md
This sample shows you how to create Stripe customers when your users sign up, securely collect and store their payment details, and charge them when a new document is written to your Firestore.
payments collection. (view code).
firebase login.firebase use --add and select your project.cd functions; npm install; cd -firebase functions:secrets:set STRIPE_SECRET
STRIPE_PUBLISHABLE_KEY const in /public/javascript/app.jsfirebase deployfirebase open hosting:siteSince this project uses Firebase Auth triggers, the functions need to be deployed. However, when making changes to your client application in the /public folder, you can serve it locally to quickly preview changes.
firebase deploy --only functions ## only needs to be run when you make changes to your functions
firebase serve --only hosting
Once you’re ready to go live, you will need to exchange your test keys for your live keys. See the Stripe docs for further details.
firebase functions:secrets:set STRIPE_SECRET
STRIPE_PUBLISHABLE_KEY const in /public/javascript/app.js.firebase deploy.