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

Google Pay: getGooglePayClient -> Cannot read properties of undefined (reading 'api') #1861

Open
fresh5447 opened this issue Feb 20, 2023 · 2 comments

Comments

@fresh5447
Copy link
Contributor

I am trying to initialize CyberSource : GooglePay and receive the following errors:

Screenshot 2023-02-20 at 11 19 30 AM

Screenshot 2023-02-20 at 11 19 19 AM

Here is a snapshot of the payment method I am referring to:

Screenshot 2023-02-20 at 11 22 09 AM

Here are the options I initialize the method with, which seem to be aligned with the docs: https://github.com/bigcommerce/checkout-sdk-js/blob/master/docs/interfaces/GooglePayPaymentInitializeOptions.md

                    const options = {
                        methodId: 'googlepaycybersourcev2',
                        googlepaycybersourcev2: {
                            walletButton: 'checkoutButton--googlepaycybersourcev2',
                            onPaymentSelect: () => console.log("payment select"),
                            onError: (error) => {
                                console.log("googlepaycybersourcev2", error)
                            },
                        },
                    }

                    service.initializePayment(options);

Currently running stencil-cli 6.0.0 and Checkout-SDK version 1.183.0

@animesh1987
Copy link
Contributor

Hey @fresh5447 SDK's current version is 1.351.0, have you tried updating to latest version?

@bc-0dp
Copy link
Collaborator

bc-0dp commented Feb 16, 2024

@fresh5447 was this resolved by upgrading the SDK version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants