- Python
- Stripe CLI
- Create a Stripe account
- Create a Stripe Platform account
- Create a test Stripe Connected account associated with the platform account
- API keys for your account
This project uses Flask as its server. Here's how to run it after cloning.
-
Create a Customer object on the Stripe Platform account and attach at least one payment method using dashboard or API.
-
Create a Customer object on the Connected account associated with the Stripe Platform.
-
Create and populate a
.env
file. There's a starter example you can copy inserver/
.
cp server/.env.example server/.env
# Then open server/.env in your text editor and paste in the API keys for your account and a Price ID.
- Install dependencies and start up the server.
cd server/
virtualenv venv
source bin/venv/activate
pip install -r requirements.txt
python server.py
- Go in your browser
http://localhost:4242
to see the demo