MadPayInterface class abstract
The interface that implementations of MadPay must implement.
- Inheritance
-
- Object
- PlatformInterface
- MadPayInterface
Constructors
- MadPayInterface()
- Constructs a MadPayInterface.
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) → 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
Static Properties
- instance ↔ MadPayInterface
-
The default instance of MadPayInterface to use.
getter/setter pair