- Install the dependencies with the below command.
pip install flask python-dotenv stripe
- Create a stripe account and add the keys to the .env file in the below format. Note that you must also include your desired currency (lower case).
STRIPE_KEY=secret_key_here
STRIPE_PUBLISHABLE=stripe_publishable_here
CURRENCY=your_currency_here
- Start the server by typing
python app.py
- Open
localhost:5000
in your browser and follow the prompts! - Get your money back!