-
Notifications
You must be signed in to change notification settings - Fork 62
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
Unhandled Exception Google is not Defined #219
Comments
@jconleyCB could you try with 3.0.6? We recently fixed a potentially related issue. |
Yep its still an issue in 3.0.6. My assumption is that even though the try-catch catches the error for loading the script it continues down to |
@jconleyCB found the issue. will submit a fix. |
Thank you @dmengelt! |
@jconleyCB please use version 3.0.8 |
Hi @jconleyCB very good point. Let me have a look at this. |
@jconleyCB see #225 |
Describe the bug A clear and concise description of what the bug is.
The issue im seeing is when the google pay script doesnt load, an unhandled exception is thrown instead of passing the error to the
config.onError
.To Reproduce Steps to reproduce the behavior:
https://pay.google.com/gp/p/
Expected behavior A clear and concise description of what you expected to happen.
The
updateElement
function should have a check that google is defined before invokingthis.client = new google.payments.api.PaymentsClient(this.createClientOptions(this.config));
Screenshots If applicable, add screenshots to help explain your problem.
Component information:
@google-pay/button-react
)@google-pay/button-element
)@google-pay/button-angular
)Environment:
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: