Notes:
- In order to make a charge, app requires a http app to server stripe.js and handle callback Stripe HTML form
- Purpose of this example is to build a comprehension around what a server app can do without the use of Rails and how to tie in a module such as Stripe.
bundle init
touch main.rb .gitignore .env README.md
bundle
- build main.rb (add gems)
- implement stripe
- implement dotenv to get environment variable for stripe
- implement charge with stripe (record id)
- implement charge retrieval with charge id
- build server.rb
- implement do_GET in Routes class and serve basic page
- implement index.html
- integrate dotenv and erb with index.html
- implement do_POST in Routes class and serve post response
- implement charge by stripe