googlePayUI method

Future<PaymentResultData> googlePayUI({
  1. required GooglePayUI googlePayUI,
})

This method is used for making Google Pay payments (Android only). It takes in the required GooglePayUI input and returns a PaymentResultData object.

Implementation

Future<PaymentResultData> googlePayUI(
    {required GooglePayUI googlePayUI}) async {
  return await implementGooglePayPayment(
    checkoutId: googlePayUI.checkoutId,
    shopperResultUrl: shopperResultUrl,
    channelName: channelName,
    paymentMode: paymentMode,
    lang: lang,
    googlePayMerchantId: googlePayUI.googlePayMerchantId,
    gatewayMerchantId: googlePayUI.gatewayMerchantId,
    countryCode: googlePayUI.countryCode,
    currencyCode: googlePayUI.currencyCode,
    amount: googlePayUI.amount,
    allowedCardNetworks: googlePayUI.allowedCardNetworks,
    allowedCardAuthMethods: googlePayUI.allowedCardAuthMethods,
  );
}