MpesaPaymentManager class

Constructors

MpesaPaymentManager({required String publicKey, required bool isDebugMode, required String amount, required String currency, required String email, required String txRef, required String fullName, required String phoneNumber, String? redirectUrl})
MpesaPaymentManager constructor.

Properties

amount String
getter/setter pair
currency String
getter/setter pair
email String
getter/setter pair
fullName String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isDebugMode bool
getter/setter pair
phoneNumber String
getter/setter pair
publicKey String
getter/setter pair
redirectUrl String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
txRef String
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
payWithMpesa(MpesaRequest payload, Client client) Future<ChargeResponse>
Initiates payments via Mpesa Available for only payments with KES currency returns an instance of ChargeResponse or throws an error
toJson() Map<String, dynamic>
Converts instance of MpesaPaymentManager to a map
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited