This is a basic payment integration using Stripe's Python SDK.
Setup Stripe Account:
- First, sign up for a Stripe Account
- Go to Dashboard
Some necessary packages must be installed for running the code:
pip install Flask stripe python-dotenv
In the .env
file please replace the STRIPE_SECRET_KEY
with your Stripe Secret Key and STRIPE_PUBLISHABLE_KEY
with your Stripe Publishable Key. These can be found in the Stripe Dashboard.
- To run the code locally:
Fork this repository
git clone https://github.com/debjit-mandal/simple-payment-gateway.git
cd simple-payment-gateway
python app.py
Visit http://localhost:5000 to view the frontend.
Feel free to suggest any kind of improvments.