Metadata-Version: 2.4
Name: aurum-pay
Version: 1.2.0
Summary: AURUM Payments SDK — deposits, payouts, refunds and signed webhooks.
Author-email: AURUM Casino <dev@aurum-casino.com>
License: MIT
Project-URL: Homepage, https://aurum-casino.com
Project-URL: Documentation, https://aurum-casino.com/developers
Keywords: payments,casino,aurum,sdk,psp,gateway
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# AURUM Payments SDK

Server-to-server SDK for deposits, payouts, refunds and signed webhooks.

## Install

```bash
pip install aurum-pay
```

## Quick start

```python
from aurum_pay import AurumPay

client = AurumPay(api_key="aurum_sk_live_...", webhook_secret="whsec_...")

# Create a deposit
session = client.payments.create(
    amount="50.00",
    method="card",
    customer_email="player@example.com",
)
print(session["checkout_url"])

# Verify a webhook
event = client.construct_event(raw_body, signature, webhook_secret)
print(event["type"])  # payment.captured
```

## Methods

| Resource | Methods |
|----------|---------|
| `payments` | `create`, `retrieve`, `list`, `cancel`, `refund` |
| `payouts` | `create`, `retrieve`, `list` |
| `client` | `balance`, `history`, `health`, `construct_event` |

## Webhooks

Verify incoming PSP webhooks with `construct_event`. Supports both raw `sha256=<hex>` and Stripe-style `t=<unix>,v1=<hex>` signatures.

## Documentation

Full API reference: [aurum-casino.com/developers](https://aurum-casino.com/developers)

## License

MIT
