Fireship.io - Stripe Course as Firebase cloud functions!
Simple. Clone the repo. And run the following from the repo folder:
$ npm i --save
Remember to set the following in your firebase config.
$ firebase functions:config:set stripe.secret="YOUR STRIPE SECRET KEY"
$ firebase funcitons:config:set stripe.whsec="YOUR WEBHOOK SECRET KEY" // This one is webhook specific
$ firebase functions:config:set web.url="MY AWESOME STRIPE WEBSITE!" // This one is only used in the "checkout.ts"
Remember to init this as a firebase functions folder:
$ firebase init functions