Node + Express + Stripe
Looking for a more complex example? Node Stripe Charge
Fork/Clone
Install dependencies:
$ npm install
create a .env and add the following env variable:
STRIPE_SECRET_KEY=ADD-YOUR-OWN-KEY
update src/client/js/main.js with your publishable key:
Stripe.setPublishableKey('UPDATE ME');
Fire up the app - npm start
. Then, navigate to http://localhost:3000/products/1 in your browser of choice.