MethodChannelFlutterTapPaySdk class

An implementation of FlutterTapPaySdkPlatform that uses method channels.

Inheritance

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
tapPaySdkVersion Future<String?>
To get the native SDK version
no setteroverride

Methods

applePayResult({required bool result}) Future<TapPaySdkCommonResult?>
Report Apple Pay result
override
getCardPrime({required String cardNumber, required String dueMonth, required String dueYear, required String cvv}) Future<TapPayPrime?>
Get card's prime
override
initApplePay({required String merchantId, required String merchantName, List<TapPayCardType>? allowedCardTypes, bool? isConsumerNameRequired = false, bool? isPhoneNumberRequired = false, bool? isEmailRequired = false, bool? isBillingAddressRequired = false}) Future<TapPaySdkCommonResult?>
Initialize Apple Pay
override
initGooglePay({required String merchantName, List<TapPayCardAuthMethod>? allowedAuthMethods = kDefaultTapPayAllowedCardAuthMethods, List<TapPayCardType>? allowedCardTypes = kDefaultTapPayAllowedCardTypes, bool? isPhoneNumberRequired = false, bool? isEmailRequired = false, bool? isBillingAddressRequired = false}) Future<TapPaySdkCommonResult?>
Initialize Google Pay
override
initTapPay({required int appId, required String appKey, bool isSandbox = false}) Future<TapPayInitResult?>
Initialize TapPay payment SDK
override
isCardValid({required String cardNumber, required String dueMonth, required String dueYear, required String cvv}) Future<bool>
Verify card information
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestApplePay({required List<CartItem> cartItems, required String currencyCode, required String countryCode}) Future<TapPayPrime?>
Request Apple Pay
override
requestGooglePay({required double price, required String currencyCode}) Future<TapPayPrime?>
Request Google Pay
override
toString() String
A string representation of this object.
inherited

Operators

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