yezz123 / stripe-template

Template for integrating stripe into your FastAPI application 💸

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stripe-Template

Template for integrating stripe into your FastAPI application 💸, Useful to generate a checkout session needed to save customers payment methods for recurring payments (in particular SEPA debits).

Usage

Install dependencies

pip install -e .

Run the application

uvicorn app.main:app --reload --workers 1 --host 0.0.0.0 --port 8000

Run the tests

bash scripts/test.sh

NOTES: You need to have a .env file in the root of the project with the following variables:

STRIPE_API_KEY= sk_test_* # Your stripe API key

About

Template for integrating stripe into your FastAPI application 💸

License:MIT License


Languages

Language:Python 88.9%Language:Shell 11.1%