Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Latest commit

 

History

History

2020-01-28-variable-checkout

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Donations with Checkout 2020-01-28

Learn how to collect variable amount payments (donations) and use metadata with Checkout.

🎬 Watch on YouTube

Getting Started

Follow these instructions to spin-up a copy of this demo project up on your local machine for development and testing purposes. This is meant to be a guide to show you how to go about building a simple page to collect variable amount payments (donations). If your customers do not control the payment amount, please see our other episode about Checkout.

Prerequisites

Step by step

  1. Configure your keys

Copy the example .env file and update those values with your Stripe API keys.

cp ../.env.example .env

Then, be sure to update the publishable key (pk_xxx) in templates/index.html.

  1. Install Dependencies
python3 -m venv venv
. venv/bin/activate
pip install python-dotenv
pip install Flask
pip install stripe
  1. Start the server
export FLASK_APP=server.py && flask run

More Resources

Demo