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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paypal JS SDK not loading for some users #461

Open
freddyhaddad opened this issue Feb 16, 2024 · 1 comment
Open

Paypal JS SDK not loading for some users #461

freddyhaddad opened this issue Feb 16, 2024 · 1 comment

Comments

@freddyhaddad
Copy link

Library used

direct script integration, as follows: https://www.paypal.com/sdk/js?client-id=[OUR-CLIENT-ID]&components=messages,buttons

馃悶 Describe the Bug

We set up sentry to report when an external <script> tag failed to load (triggers an onerror event).
For 1% of our users, the SDK script tag is unable to load. It works for 99% of the users since we still get payments, but cannot reproduce locally.
Watching some affected user sessions show the user being frustrated as he cannot find the Paypal Smart Buttons on the page.
Moreover, window.paypal is not available right under the asynchronous script tag for these users.

All browsers are affected, desktop and mobile, Chrome/Safari/Edge

We use the Paypal JS SDK on 3 separate websites, and the issue happens on the 3 sites.

馃敩 Minimal Reproduction

Cannot reproduce

馃槙 Actual Behavior

The direct Paypal SDK JS script tag triggers an "onerror" event, and window.paypal isn't available which triggers subsequent errors upon usage.

馃 Expected Behavior

Expected Paypal JS SDK to be downloadable by all users' browsers.

@aduca98
Copy link

aduca98 commented May 14, 2024

Also facing this issue.

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

No branches or pull requests

3 participants
@freddyhaddad @aduca98 and others