Skip to main content

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/yourusername/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': 'USDT',
    'user_id': 'user123',
    'order_id': 'order456'
}

result = cryp.create_payment(payment_data)
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/yourusername/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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cryp_payment-0.1.0.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cryp_payment-0.1.0-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file cryp_payment-0.1.0.tar.gz.

File metadata

  • Download URL: cryp_payment-0.1.0.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for cryp_payment-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9c2c278bd4a1dbd2b3fedc3e4d34228201a0ffd640902f1fd30f6cd80fdad98d
MD5 3bd4fbc31443b5379c498f9735fed4f1
BLAKE2b-256 9fb12ea76d2da8ae6a70dbbdf8fde6ba6b126d6689b94e7d56958e47dcf4dd5b

See more details on using hashes here.

File details

Details for the file cryp_payment-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cryp_payment-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for cryp_payment-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9d5970ddf69357f479092357af9542c1bc3874db672b4f409e3bed182b3d504
MD5 44b393a8be868a7094dfc822af0e861b
BLAKE2b-256 9bfbb51185932929acc2f430fdd9754a1290b316c0dcdc43cdca7fafac0df599

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page