Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't see buttons in product page #40

Open
giacmir opened this issue Aug 25, 2023 · 2 comments
Open

Can't see buttons in product page #40

giacmir opened this issue Aug 25, 2023 · 2 comments
Assignees
Labels

Comments

@giacmir
Copy link

giacmir commented Aug 25, 2023

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):

  • OS: ubuntu GNU/Linux
  • Browser chrome
  • Version 116.0.5845.96
@candemiralp
Copy link
Member

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

@candemiralp candemiralp self-assigned this Aug 29, 2023
@stale
Copy link

stale bot commented Sep 17, 2023

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.

@stale stale bot added the Stale label Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants