Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yezz123/stripe-template
Template for integrating stripe into your FastAPI application 💸
https://github.com/yezz123/stripe-template
fastapi payment pydantic sepa stripe
Last synced: about 2 months ago
JSON representation
Template for integrating stripe into your FastAPI application 💸
- Host: GitHub
- URL: https://github.com/yezz123/stripe-template
- Owner: yezz123
- License: mit
- Created: 2023-01-16T10:09:39.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-27T22:47:58.000Z (7 months ago)
- Last Synced: 2024-05-28T08:17:32.291Z (7 months ago)
- Topics: fastapi, payment, pydantic, sepa, stripe
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# 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
```bash
pip install -e .
```### Run the application
```bash
uvicorn app.main:app --reload --workers 1 --host 0.0.0.0 --port 8000
```### Run the tests
```bash
bash scripts/test.sh
```__NOTES__: You need to have a `.env` file in the root of the project with the following variables:
```bash
STRIPE_API_KEY= sk_test_* # Your stripe API key
```