MpesaC2BSimulation class

Make payment requests from Client to Business (C2B). Simulate is available on sandbox only

Implemented types

Constructors

MpesaC2BSimulation(Mpesa mpesa, {required String phoneNumber, required double amount, String? billRefNumber, CbCommandID commandID = CbCommandID.CustomerPayBillOnline})

Properties

amount double
This is the amount being transacted. The parameter expected is a numeric value.
getter/setter pair
billRefNumber String?
This is used on CustomerPayBillOnline option only. This is where a customer is expected to enter a unique bill identifier, e.g. an Account Number. Alpha-Numeric less then 20 digits.
getter/setter pair
commandID CbCommandID
This is a unique identifier of the transaction type: There are two types of these Identifiers: CustomerPayBillOnline: This is used for Pay Bills shortcodes. CustomerBuyGoodsOnline: This is used for Buy Goods shortcodes.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
mpesa Mpesa
getter/setter pairoverride
payload Map<String, dynamic>
no setter
phoneNumber String
This is the phone number initiating the C2B transaction.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
process() Future<MpesaResponse>
override
toString() String
A string representation of this object.
inherited

Operators

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