A cryptocurrency payment processing system for BSC
Project description
Cryp Payment
A cryptocurrency payment processing system for Binance Smart Chain (BSC).
Features
- 🔐 Secure payment address generation
- 💰 Multi-token support (BNB, USDT, BUSD, USDC)
- 📊 Real-time payment tracking
- ⏰ Automatic payment expiration
- 🔔 Webhook notifications via Alchemy
- 🔒 Encrypted private key storage
Installation
From PyPI (once published)
pip install cryp-payment
From source
git clone https://github.com/wolfgang-99/cryp-payment.git
cd cryp-payment
pip install -e .
Quick Start
from cryp import Cryp
# Initialize Cryp
cryp = Cryp()
# Create a payment
payment_data = {
'amount': 100.0,
'currency': 'BNB',
'user_id': 'user123',
'order_id': 'order456'
}
result = cryp.create_payment(payment_data)
if result['result']:
print(f"Payment address: {result['payment']['payment_address']}")
# Check payment status
status = cryp.get_payment_status('order456')
print(f"Payment status: {status}")
Configuration
Create a .env file in your project root:
MONGODB_URI=mongodb://localhost:27017
MONGODB_DB=payments
BSC_RPC_URL=https://bsc-dataseed.binance.org/
PAYMENT_PRIVATE_KEY=your-private-key
ENCRYPTION_KEY=your-32-byte-encryption-key
ALCHEMY_AUTH_TOKEN=your-alchemy-token
ALCHEMY_WEBHOOK_ID=your-webhook-id
PAYMENT_TIMEOUT_MINUTES=30
Documentation
Full documentation is available at Read the Docs.
Development
Setup Development Environment
git clone https://github.com/wolfgang-99/cryp-payment.git
cd cryp-payment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -e ".[dev]"
Running Tests
pytest
Code Formatting
black src/cryp tests
flake8 src/cryp tests
mypy src/cryp
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
For issues and questions, please open an issue on GitHub.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cryp_payment-0.1.1.tar.gz.
File metadata
- Download URL: cryp_payment-0.1.1.tar.gz
- Upload date:
- Size: 25.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
405cbb4dff7d3f64b22d7db8a98821f0521bb1349f88e9438e8a366c1562e633
|
|
| MD5 |
d02c263d127a2212f1514e0ebf293630
|
|
| BLAKE2b-256 |
e034538b9d0941c74d54d836fa8abd53606ed887ca50f5a6ad5a3e5d93db34d9
|
File details
Details for the file cryp_payment-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cryp_payment-0.1.1-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c891470ec4bc740cf50ce2edaa82fc5b7eb190afc569e084cce8e87283644511
|
|
| MD5 |
3226361f9d8d7ee414c87a0efaee9093
|
|
| BLAKE2b-256 |
79b0349ecf60db02eb1f9fbe35a68f24c68768c09103c291151eccd84ae3e8ce
|