Google Pay configuration

To use Google Pay, add a new payment method in Adyen's dashboard and add paywithgoogle to the availablePaymentMethods array in nuxt.config.js:

// nuxt.config.js
export default {
  modules: [
    ['@vsf-enterprise/adyen-magento2/nuxt', {
      availablePaymentMethods: [
        'scheme',
        'paywithgoogle'
      ],
      // ...
    }]
  ]
};

Read Adyen's document about Google Pay (opens new window) to see available configuration options and learn how to test this payment method.

To pass additional configuration options for Google Pay, use the methods.paywithgoogle property. E.g.:

// nuxt.config.js
export default {
  modules: [
    ['@vsf-enterprise/adyen-magento2/nuxt', {
      availablePaymentMethods: [
        'scheme',
        'paywithgoogle'
      ],
      methods: {
        paywithgoogle: {
          buttonColor: 'white'
        }
      }
      // ...
    }]
  ]
};