Adyen / adyen-magento2-express-checkout

Adyen Magento 2 Express Checkout Module
MIT License
8 stars 2 forks source link

Can't see buttons in product page #40

Open giacmir opened 10 months ago

giacmir commented 10 months ago

Describe the bug Buttons are not appearing in product page, I get this error in console:

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'configuration')
    at UiClass.getGooglePayConfig (button.js:258:64)
    at UiClass.initialiseGooglePayComponent (button.js:173:46)

This seem to happen because button.js is trying to access gatewayMerchantId: googlePaymentMethod.configuration.gatewayMerchantId while googlePaymentMethod being null.

If I'm correct this googlePaymentMethod variable is populated in getPaymentMethod.js at line 9 by calling customerData.get('adyen-express-pdp');

but \Adyen\ExpressCheckout\CustomerData\AdyenExpress always returns an empty array.

How can this even work?

To Reproduce Steps to reproduce the behavior:

  1. Install and configure Adyen module
  2. Install and configure this module
  3. navigate to a product page

Expected behavior Fast checkout buttons should be visible

Desktop (please complete the following information):

candemiralp commented 10 months ago

Hello @giacmir,

Thank you for raising this issue. Could you please verify that you've configured Google Pay payment method in your Adyen Customer Area with googlepay variant for the desired currency and countries?

Best Regards, Can

stale[bot] commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.