checkout-sdk-js
checkout-sdk-js copied to clipboard
Google Pay: getGooglePayClient -> `Cannot read properties of undefined (reading 'api')`
I am trying to initialize CyberSource : GooglePay and receive the following errors:
Here is a snapshot of the payment method I am referring to:
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
Hey @fresh5447 SDK's current version is 1.351.0, have you tried updating to latest version?
@fresh5447 was this resolved by upgrading the SDK version?