GoPayClient class
Client officiel pour interagir avec l'API GoPAY Mobile Money (Paiements et Payouts).
Constructors
-
GoPayClient(GoPayConfig config, {GoPayTransport? transport, int clockSeconds()?, String nonceProvider()?, Future<
void> sleep(Duration)?}) - Crée une instance de GoPayClient avec la configuration fournie.
Properties
- config → GoPayConfig
-
Configuration du client (clés marchandes, base URL, timeout, retry).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkPayment(
String ref) → Future< GoPayResponse> - Vérifie le statut d'une transaction de paiement par sa référence marchand.
-
deletePayoutTransfer(
String transId) → Future< GoPayResponse> - Annule un transfert Payout au statut EN ATTENTE.
-
getPayoutBalance(
) → Future< GoPayResponse> - Récupère le solde disponible du compte Payout (Wallet sortant).
-
getPayoutTransfers(
) → Future< Object?> - Liste l'ensemble des transferts Payout émis.
-
getPayoutTransferStatus(
String transIdOrMyref) → Future< GoPayResponse> - Consulte le statut détaillé d'un transfert Payout par son identifiant ou référence.
-
initPayment(
double amount, String devise, String telephone, String myref, {String? usersId}) → Future< GoPayResponse> - Initie une demande de paiement Mobile Money (M-Pesa, Airtel Money, Orange Money).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendPayoutTransfer(
double montant, String devise, List< String> telephones, List<String> myrefs, {String? dateDenvoi}) → Future<GoPayResponse> - Émet un transfert de fonds Payout vers une liste de numéros de téléphone.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited