https://github.com/mariofix/merchants
A unified payment processing toolkit for Starlette/FastAPI applications
https://github.com/mariofix/merchants
alpha fastapi fastapi-extension not-for-production payment-gateway payment-hub payment-integration payment-processing payments payments-platform python starlette starlette-extension
Last synced: 27 days ago
JSON representation
A unified payment processing toolkit for Starlette/FastAPI applications
- Host: GitHub
- URL: https://github.com/mariofix/merchants
- Owner: mariofix
- License: mit
- Created: 2023-04-09T05:17:56.000Z (about 2 years ago)
- Default Branch: sandbox
- Last Pushed: 2025-03-03T18:27:30.000Z (3 months ago)
- Last Synced: 2025-03-03T19:33:03.395Z (3 months ago)
- Topics: alpha, fastapi, fastapi-extension, not-for-production, payment-gateway, payment-hub, payment-integration, payment-processing, payments, payments-platform, python, starlette, starlette-extension
- Language: Python
- Homepage: https://mariofix.github.io/merchants
- Size: 96.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Merchants
This project is under development, not for production use.
[](https://badge.fury.io/py/merchants)
[](https://opensource.org/licenses/MIT)
[](https://pypi.org/project/merchants/)
[](https://fastapi.tiangolo.com)
[](https://pepy.tech/project/merchants)
[](https://github.com/psf/black)
[](https://results.pre-commit.ci/latest/github/mariofix/merchants/sandbox)A unified payment processing toolkit for FastAPI applications, inspired by django-payments.
## Overview
Merchants is an all-in-one payment processing solution designed to integrate seamlessly with FastAPI applications. This
modular payment integration system aims to simplify the implementation of various payment gateways and provide a
flexible interface for handling different payment methods.## Features
- Easy integration with Starlette/FastAPI applications
- Support for multiple payment gateways
- Customizable payment workflows
- Webhook handling for payment status updates
- Extensible architecture for adding new payment providers
- Unified API across different payment services## Installation
```bash
poetry add merchants
```## Quick Start
```python
from fastapi import FastAPI
from fastapi_merchants import Merchantsapp = FastAPI()
merchants = Merchants(app)# Configure your payment providers
merchants.add_provider("stripe", api_key="your_stripe_api_key")
merchants.add_provider("paypal", client_id="your_paypal_client_id", client_secret="your_paypal_client_secret")# Use Merchants in your routes
@app.post("/create-payment")
async def create_payment(amount: float, currency: str, provider: str):
return await merchants.create_payment(amount, currency, provider)
```## Documentation
For detailed documentation, please visit [our documentation site](https://mariofix.github.io/fastapi-merchants).
## License
Merchants is released under the MIT License. See the [LICENSE](LICENSE) file for more details.
## Acknowledgements
This project was inspired by the [django-payments](https://github.com/jazzband/django-payments) library and aims to provide similar functionality for FastAPI
applications, some parts were made with Claude and/or ChatGPT.## Changelog
See the [CHANGELOG](CHANGELOG) file for more details.