MobiPayPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • MobiPayPlatform
Implementers

Constructors

MobiPayPlatform()
Constructs a MobiPayPlatform.

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

getPlatformVersion() → Future<String?>
isApplePaySupported({required List<String> supportedNetworks, required List<String> merchantCapabilities}) → Future<bool>
Whether Apple Pay is available on this device and at least one of the supportedNetworks is provisioned in Wallet. Always false on non-iOS platforms.
isGooglePaySupported({required String environment, required List<String> supportedNetworks, required List<String> allowedAuthMethods}) → Future<bool>
Whether Google Pay is available on this device for the given networks and auth methods. Always false on non-Android platforms.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestApplePayToken({required String merchantIdentifier, required String countryCode, required String currencyCode, required String amount, required String orderDescription, required List<String> supportedNetworks, required List<String> merchantCapabilities, List<String> validatePayerFields = const []}) → Future<Map<String, dynamic>?>
Presents the native Apple Pay sheet and, once the payer authorizes the payment, returns a map shaped {"paymentToken": {...}, "billingContact": {...}}:
requestGooglePayToken({required String gateway, required String gatewayMerchantId, required String merchantName, required String environment, required String amount, required String currencyCode, required String countryCode, required List<String> supportedNetworks, required List<String> allowedAuthMethods}) → Future<Map<String, dynamic>?>
Presents the native Google Pay sheet and, once the payer confirms, returns a map shaped {"paymentToken": {...}, "billingContact": {...}}:
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

instance ↔ MobiPayPlatform
The default instance of MobiPayPlatform to use.
getter/setter pair