public/js/gpay.js
/**
     * Show Google Pay payment sheet when Google Pay payment button is clicked
     */
Show Google Pay payment sheet when Google Pay payment button is clicked
Show Google Pay payment sheet when Google Pay payment button is clicked
function onGooglePaymentButtonClicked() {
      const paymentDataRequest = getGooglePaymentDataRequest();
      paymentDataRequest.transactionInfo = getGoogleTransactionInfo();
      const paymentsClient = getGooglePaymentsClient();
      paymentsClient.loadPaymentData(paymentDataRequest);
    }
function onGooglePaymentButtonClicked ( ) { onst  aymentDataRequest  etGooglePaymentDataRequest( ) ; aymentDataRequest. t ransactionInfo  etGoogleTransactionInfo( ) ; onst  aymentsClient  etGooglePaymentsClient( ) ; aymentsClient. l oadPaymentData( p aymentDataRequest) ; }
Show Google Pay payment sheet when Google Pay payment button is clicked
Show Google Pay payment sheet when Google Pay payment button is clicked