Skip to content

Latest commit

 

History

History
 
 

2020-12-15-clone-payment-method

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Stripe Developer Office Hours - Clone payment method

🎬 Watch on YouTube

Requirements

How to run

This project uses Flask as its server. Here's how to run it after cloning.

  1. Create a Customer object on the Stripe Platform account and attach at least one payment method using dashboard or API.

  2. Create a Customer object on the Connected account associated with the Stripe Platform.

  3. Create and populate a .env file. There's a starter example you can copy in server/.

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.
  1. Install dependencies and start up the server.
cd server/
virtualenv venv
source bin/venv/activate 
pip install -r requirements.txt 
python server.py
  1. Go in your browser http://localhost:4242 to see the demo

A gif of cloning a payment method for a one-time payment.

More resources