-
Notifications
You must be signed in to change notification settings - Fork 97
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
[Bug] Failed to load the PayPal JS SDK script. Error: The script "https://www.paypal.com/sdk/js?client-id= on Safari #561
Comments
Seeing the same problem on an iOS Reactjs single-page app. Using the Chrome browser does not fix the issue, so the security setting that prevents loading the Paypal module maybe an iOS setting, at least in our case. |
we also see this issue |
same here |
Seeing the same issue, could it be because my client id is of a sandbox user? |
I have experienced the same bug trying to implement checkout page with |
Library used
react-paypal-js
(version8.1.3
)🐞 Describe the Bug
We are encountering a frequent issue on our website, where the PayPal JS SDK fails to load, especially on certain versions of Safari, most notably in private browsing mode. This results in PayPal buttons not rendering and a significant number of error logs recorded in our Sentry error logging system.
The error message specifically points to a blocked request due to content blockers in Safari, as well as
XMLHttpRequest
access control checks. This issue affects both desktop and mobile Safari versions.🔬 Minimal Reproduction
Navigate to petsdeli.de using Mobile Safari or Safari.
Enable private browsing mode.
Observe the error in the browser's developer console.
😕 Actual Behavior
The PayPal JS SDK script fails to load, resulting in the following error in the console:
This issue is primarily observed on Safari browsers (both desktop and mobile), particularly in private mode. We see around 1000 error logs per day from our Sentry system related to this problem.
🤔 Expected Behavior
The PayPal JS SDK script should load successfully, and the PayPal buttons should render correctly, regardless of whether the user is browsing in private mode or has a content blocker enabled.
🌍 Environment
20.11.0
➕ Additional Context
The text was updated successfully, but these errors were encountered: