Metadata-Version: 2.4
Name: kobara
Version: 2.0.0
Summary: Official Python SDK for Kobara payments and MonCash/NatCash withdrawals
Author-email: Kobara Dev Team <dev@kobara.app>
License-Expression: MIT
Project-URL: Documentation, https://docs.kobara.app/docs/python-sdk
Project-URL: Homepage, https://kobara.app
Project-URL: Repository, https://github.com/L09DP01/Kobara-python
Project-URL: Issues, https://github.com/L09DP01/Kobara-python/issues
Keywords: kobara,moncash,haiti,payments,fintech,sdk
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
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
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.25.0
Dynamic: license-file

# Kobara Python SDK

SDK serveur officiel pour les paiements Kobara, les retraits MonCash/NatCash et la vérification des webhooks.

```bash
pip install kobara
```

```python
from kobara import Kobara

client = Kobara(api_key="kbr_sk_live_...")
payment = client.payments.create({
    "amount": 2500,
    "currency": "HTG",
    "provider": "kobara",
    "success_url": "https://shop.example/success",
    "cancel_url": "https://shop.example/cancel",
}, idempotency_key="payment-1001")

print(payment["data"]["checkout_url"])
```

Les fournisseurs acceptés sont `kobara`, MonCash, NatCash, carte, PayPal, Apple Pay et Google Pay, avec leurs identifiants détaillés dans la documentation. Leur disponibilité dépend des activations du marchand et du système.

```python
withdrawal = client.withdrawals.create({
    "amount": 1000,
    "method": "natcash",
    "account_currency": "HTG",
    "wallet": "50941234567",
}, idempotency_key="withdrawal-1001")
```

Les retraits API acceptent uniquement `moncash` et `natcash`. L'URL par défaut est `https://api.kobara.app/v1`; une UUID d'idempotence est générée si elle est omise.

Documentation: https://docs.kobara.app/docs/python-sdk
