> ## Documentation Index
> Fetch the complete documentation index at: https://apidoc-business.easytransfert.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Dart

## Installation

Le SDK Python peut être installé via [pub](https://pub.dev/packages/easytransfert_sdk_api_marchand)

```yaml theme={null}
dependencies:
  easytransfert_sdk_api_marchand: ^1.0.0
```

Puis exécutez :

```shellscript theme={null}
dart pub get
```

## Initialisation

```dart theme={null}
import 'package:easytransfert_sdk_api_marchand/easytransfert_sdk_api_marchand.dart';

final config = EasyTransfertConfig(
  apiKey: "VOTRE_CLE_API",
  ipnUrl: "https://votre-site.com/ipn",
);

final sdk = EasyTransfertSDK(config);
```

## Collecte (Cashout-out)

```dart theme={null}
final response = await sdk.cashout.cashout({
   "amount": 1000,
   "destination": "0102030405",
   "ipn_url": "https://votre-domaine.com/webhook/ipn",
   "api_key": "votre-api-key",
   "service_id": 17,
   "custom_data": "commande-12345",
});
print(response);
```

## Transfert (Cash-in)

```dart theme={null}
final response = await sdk.cashin.cashin({
    "amount": 1000,
    "destination": "0700000000",
    "ipn_url": "https://votre-domaine.com/webhook/ipn",
    "api_key": "votre-api-key",
    "service_id": 17,
});
print(response);
```

## Vérifier le solde

```dart theme={null}
final response = await sdk.balance.getBalance({
  "wallet": "main",
});
print(response);
```

## Vérification du status d'une transaction

```dart theme={null}
final response = await sdk.transactionStatus.checkStatus({
  "transaction_id": "TRANS123",
});
print(response);
```
