MadPay class

Payment controller

Constructors

MadPay({Environment environment = Environment.test})
Payment controller
factory
MadPay.withoutEnvironment()
Payment controller
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkActiveCard({List<PaymentNetwork>? paymentNetworks}) Future<bool>
Returns true if Apple/Google Pay is available on device and there is at least one activate card
checkPayments() Future<bool>
Returns true if Apple/Google Pay is available on device
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processingPayment(PaymentRequest request) Future<PaymentResponse?>
Process the payment and returns the token from Apple/Google pay
setEnvironment({Environment environment = Environment.test}) Future<void>
Sets the Environment for payment. The default is: Environment.test
toString() String
A string representation of this object.
inherited

Operators

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