Metadata-Version: 2.4
Name: cryp-payment
Version: 0.1.1
Summary: A cryptocurrency payment processing system for BSC
Home-page: https://github.com/wolfgang-99/cryp-payment
Author: wolfs code
Author-email: wolf's code <wolfs.code.work@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/wolfgang-99/cryp-payment
Project-URL: Documentation, https://cryp-payment.readthedocs.io
Project-URL: Repository, https://github.com/wolfgang-99/cryp-payment
Project-URL: Bug Tracker, https://github.com/wolfgang-99/cryp-payment/issues
Keywords: cryptocurrency,payment,blockchain,bsc,binance
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Dynamic: author
Dynamic: home-page
Dynamic: requires-python

# 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)
```bash
pip install cryp-payment
```

### From source
```bash
git clone https://github.com/wolfgang-99/cryp-payment.git
cd cryp-payment
pip install -e .
```

## Quick Start

```python
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:

```env
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](https://cryp-payment.readthedocs.io).

## Development

### Setup Development Environment

```bash
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

```bash
pytest
```

### Code Formatting

```bash
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](LICENSE) file for details.

## Support

For issues and questions, please open an issue on [GitHub](https://github.com/wolfgang-99/cryp-payment/issues).
