Quick demo for implementing stripe checkout in Vue.js and Node/Express
Super simple. Intentionally not using any task-runners or module-loading tools. Good ol' npm and external libraries loading via a CDN. Not fancy (obviously, not even production ready) but should be a VERY clear demo.
- clone
- npm install
- create file .env based on .env.sample with your own Stripe credentials
- node server.js or nodemon or whatever-you-like-to-use
- navigate your favorite browser to http://localhost:9002
https://stripe.com/docs/checkout#integration-custom
Note: if you want to run Stripe in live mode, this example must be deployed to a server with SSL cert. My own preferences in this matter lie squarely with https://letsencrypt.org/