requestGooglePay method

Future<TapPayPrime?> requestGooglePay({
  1. required double price,
  2. String currencyCode = 'TWD',
})

Request Google Pay

price is the price of the transaction currencyCode is the currency code of the transaction. Default value is 'TWD'

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?> requestGooglePay({
  required double price,
  String currencyCode = 'TWD',
}) {
  return FlutterTapPaySdkPlatform.instance.requestGooglePay(
    price: price,
    currencyCode: currencyCode,
  );
}