easytransfert_sdk_api_marchand 1.0.0 copy "easytransfert_sdk_api_marchand: ^1.0.0" to clipboard
easytransfert_sdk_api_marchand: ^1.0.0 copied to clipboard

SDK Dart/Flutter pour l'intégration des paiements marchands EasyTransfert.

EasyTransfert SDK Dart/Flutter #

SDK Dart/Flutter pour l'intégration des paiements marchands EasyTransfert.

Installation #

Ajoutez cette dépendance à votre fichier pubspec.yaml :

dependencies:
  easytransfert_sdk_api_marchand: ^1.0.0

Puis exécutez :

dart pub get

Utilisation #

Initialisation #

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);

Vérifier le solde #

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

Cash-in (Dépôt) #

final response = await sdk.cashin.cashin({
  "amount": 1000,
  "phone": "0102030405",
  "network": "ORANGE",
});
print(response);

Cash-out (Retrait) #

final response = await sdk.cashout.cashout({
  "amount": 1000,
  "phone": "0102030405",
  "network": "ORANGE",
});
print(response);

Vérifier le statut d'une transaction #

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

Libération des ressources #

sdk.dispose();

Licence #

Licence Propriétaire EasyTransfert. Voir le fichier LICENSE pour plus d'informations.

0
likes
130
points
26
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

SDK Dart/Flutter pour l'intégration des paiements marchands EasyTransfert.

Repository (GitHub)

License

unknown (license)

Dependencies

http

More

Packages that depend on easytransfert_sdk_api_marchand