2 approaches to Stripe forms: Checkout (quick) and Elements (customizable)
Using checkout: https://stripe.com/docs/checkout/tutorial
- drop this form block into your HTML `
- set up server side code (flask implementation)
a. install stripe and flask
sudo pip install --upgrade stripe sudo pip install flask
b. HTTPS so that stripe can work
Deploy on AWS lambda https://joshuahoover.com/deploying-a-python-flask-web-app-on-aws-lambda/
-
Setup Serverless and the Flaskr app locally
npm install -g serverless
npm install --save serverless-wsgi
serverless create --template aws-python
# creates serverless AWS Python template -
Modify SQLite code to run in Lambda (and locally)
-
Configure the Serverless deployment
-
Deploy to AWS
-
Remove from AWS