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.
read / write
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.
read / write
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.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
mpesa Mpesa
read / writeoverride
payload Map<String, dynamic>
read-only
phoneNumber String
This is the phone number initiating the C2B transaction.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
url String
read-only

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