requestApplePay method
Request Apple Pay
cartItems
is the list of payment items
currencyCode
is the currency code of the transaction. Default value is 'TWD'
countryCode
is the country code of the transaction. Default value is 'TW'
return TapPayPrime with value success
as true
if success.
return TapPayPrime with value success
as false
if fail.
return TapPayPrime with value status
as int if fail. (The value of status
is defined by TapPay.)
return TapPayPrime with value message
as String if fail.
return TapPayPrime with value prime
as String if success.
return null
if the card information is incomplete
Implementation
Future<TapPayPrime?> requestApplePay({
required List<CartItem> cartItems,
String currencyCode = 'TWD',
String countryCode = 'TW',
}) {
return FlutterTapPaySdkPlatform.instance.requestApplePay(
cartItems: cartItems,
currencyCode: currencyCode,
countryCode: countryCode,
);
}