MethodChannelMobiPay class

An implementation of MobiPayPlatform that uses method channels.

Inheritance

Constructors

MethodChannelMobiPay()

Properties

hashCode → int
The hash code for this object.
no setterinherited
methodChannel → MethodChannel
The method channel used to interact with the native platform.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getPlatformVersion() → Future<String?>
override
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.
override
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.
override
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": {...}}:
override
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": {...}}:
override
toString() → String
A string representation of this object.
inherited

Operators

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