HPay class

Constructors

HPay({required String clientId, required String callback, String currency = 'GHS', String purpose = '', String reference = '', String transactionType = 'momo', String customerNumber = '', Color buttonColors = const Color(0xFF24b4c4), Color bottomSheetBackgroundColor = const Color(0xff787878)})

Properties

amount double
getter/setter pair
bottomSheetBackgroundColor Color
getter/setter pair
buttonColors Color
getter/setter pair
callback String
getter/setter pair
clientId String
getter/setter pair
currency String
getter/setter pair
customerNumber String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
purpose String
getter/setter pair
reference String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transactionPlatform String
getter/setter pair
transactionType String
getter/setter pair

Methods

appendToInitializer(dynamic options) → dynamic
genId({int count = 8}) → dynamic
headers() → dynamic
initialize(HPay options) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepareTransaction(dynamic context, {Map extra = const {}}) → dynamic
processPayment({required BuildContext context, required double amount, String? customerName, required String customerNumber, String? purpose, Map extra = const {}}) Future
queryTransStatus(dynamic transId) Future<Map<String, dynamic>>
toString() String
A string representation of this object.
inherited

Operators

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