Gmpay class

Properties

apiClient → ApiClient
final
apiKey String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isInitialized bool
no setter
package String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secretKey String?
getter/setter pair
test bool?
getter/setter pair
verifyTransactionTimer Timer?
getter/setter pair

Methods

getMerchantDetails() Future
initialize({String? key, String? secret, String? packageName, bool? testMode}) → void
initialize the plugin with your public key
loadBusiness() Future<(dynamic, ApiResponseMessage?)>
loadInfo() Future<(dynamic, ApiResponseMessage?)>
loadPaymentMethods() Future<(dynamic, ApiResponseMessage?)>
loadWithdrawMethods() Future<(dynamic, ApiResponseMessage?)>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pay(double? amount, {String? key, String? reference, String? currency}) → void
initialize the payment
presentPaymentSheet(dynamic context, {double? amount, String? account, String? reference, bool? waitForConfirmation, dynamic callback(TransactionInfo?)?, dynamic approvalUrlHandler(String?)?, Map<String, dynamic>? metadata}) → void
Presents the payment sheet.
presentVerificationSheet(dynamic context, {String? reference, dynamic callback(TransactionInfo?)?}) → void
Presents a verification sheet.
presentWithdrawSheet(dynamic context, {double? amount, String? account, String? reference, bool? waitForConfirmation, dynamic callback(TransactionInfo?)?, Map<String, dynamic>? metadata}) → void
Presents a withdrawal sheet.
processTransaction(String? module, String? method, Map<String, dynamic> finalData) Future<(dynamic, ApiResponseMessage?)>
requestOtp(String? module, String? method, Map<String, dynamic> args) Future<(dynamic, ApiResponseMessage?)>
toString() String
A string representation of this object.
inherited
verifyTransaction(String? s) Future<TransactionStatus?>
verifyTransactionAndWait(String reference, dynamic callback(TransactionStatus?)) → dynamic

Operators

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

Static Properties

instance Gmpay
no setter