-
Notifications
You must be signed in to change notification settings - Fork 99
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] Paypal Button Click opens Overlay to login and an empty Popup #534
Comments
We observe the same problem – with the exception that it only happens, when the payment-page, where the Paypal-button is embedded, is inside an iframe. |
I found the problem :/ We added some more security-points to our sites which set the Cross-Origin-Opener-Policy per dafault to same-origin. So i just noticed an error when using a paypal checkout method: So Paypal SDK detects that it pay not open popups and falls back to an iframe in an overlay. But the problem is that the popup opens nonetheless. The solutions: Set the Header: Cross-Origin-Opener-Policy: "same-origin-allow-popups" and the old dirty login pop up opens as it did in good old days and displays the login page :) |
Maybe this should be added to the integration documentation of the paypal sdk. |
Thing is, this used to work in the past though - so I'd say there is an issue that PayPal needs to fix; irrespective of documentation update or not. Perhaps you might consider reopening the issue, so that PayPal can close this once they have updated their server-side code? |
Same error here. I'd much rather have an option to directly display in a modal and prevent the popup's opening... |
Acknowledged. We will check and get back. |
Is there any way I can force PayPal to use the fallback mechanism so I can replicate this issue? Some of my customers have reported the same problem, but I'm unable to reproduce it on my end, making it difficult to fix. |
I'm experiencing the same issue with the blank pop-up. The new modal is fantastic, and I'm glad we're moving away from that pop-up. |
Hi all, is there any other solution rather than the one mentioned by @dkoenigroer ? |
I'd kiss you if I could. - lol - I spent so many hours trying to find whats the popup. |
This workaround did not work for me. I am experiencing the following behavior - PayPal opens an "about:blank" new tab. Back on the original tab, an iframe is opened and works like a charm. When I set this header, the change I observe is that PayPal opens an "about:blank" pop-up instead of a new tab. Either way, the iframe is opened and works like a charm. VERY RARELY, the new tab/pop-up actually loads PayPal, but then fails with an error message along the lines of "We couldn't fulfill your purchase at this time." I have not been able to reliably reproduce this scenario. All my testing has been using sandbox mode, my app is not ready to collect payments in production yet. A small part of me hopes that it will "just work" in prod... IDEALLY, there would be a way to specify to the PayPal JS SDK to simply use the iframe from the start. I've been looking and am surprised to not find a supported option - so now I'm trying to figure out what logic PayPal JS SDK uses to determine whether or not to launch a tab/pop-up etc... maybe I'll be able to configure my site in such a way that a new tab is not attempted.
|
✅ Found a good workaround! ✅ To disable pop-ups altogether and default to iframe usage, set the following attribute on your PayPal SDK Example:
Found this by setting the
There is a functionality for merchants to request popups be disabled, though it appears to be undocumented, so tread with caution. This may have been quietly deprecated to enable more complex, pop-up required, payment flows? who knows... cc @shor-ty since you asked for another workaround |
Library used
paypal-js as direct script and npm package.
🐞 Describe the Bug
After loading the payment buttons with the paypal-js sdk and choosing on of the payment methods an overlay with the login form appears. But at the same time a small popup window with "about:blank" and a white blank page opens. This popup hides the login overlay so the customer is not able to see it and stops checkout process most times.
This behaviour starts on thursday july 4th on all our online shops at the same time.
🔬 Minimal Reproduction
Go to your paypal integration and click one of the payment methods offered by the paypal-js-sdk.
😕 Actual Behavior
See "Describe the Bug"
Before this change only a blocking overlay with a paypal logo and a hint that the process will continue in a pop appears. The pop opens with the login form of paypal.
Now the loginform is displayed as overlay on top of the blocker and the popup is empty.
🤔 Expected Behavior
Either the login should be displayed as overlay as now is happening and no popup should be opened or the old behavoir when the popup displays the loginform is set back and no login overlay in the background.
🌍 Environment
The text was updated successfully, but these errors were encountered: