question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Unexpected behavior when closing the PayPal window before it loads

See original GitHub issue

🐞 Describe the Bug

There is an issue when the PayPal popup window is closed before it loads. It shows a loading element that keeps loading forever and the PayPal button is no longer clickable.

It seems it only happens when there’s an onClick callback. For some reason it makes the window load slower, it seems.

🔬 Minimal Reproduction

  • Add an onClick callback to the Buttons implementation.
  • Click the PayPal button
  • Close the popup window before it loads

Here’s a codepen where you can reproduce it: https://codepen.io/romrz/pen/GRoNQKx

😕 Actual Behavior

The window is closed, but then the overlay appears with a loading element that keeps loading forever. No console errors are shown. After closing that overlay, the PayPal button is left unresponsive.

🤔 Expected Behavior

The popup window is closed and then you can click the PayPal button again to re-initiate the payment process

🌍 Environment

  • Browser version: 81.0.4044.129
  • OS version: Mac OS Catalina (10.15.4)
  • SDK version (window.paypal.version): 5.0.128

Affected browsers

Tested on Chrome and FireFox

➕ Additional Context

Here’s a video of the issue in the codepen shared above: https://share.vidyard.com/watch/1jAbWvn7Z925VpDePdH4mx?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14

github_iconTop GitHub Comments

2reactions
romrzcommented, Jul 9, 2020

Thank you very much for taking care of this @mnicpt

0reactions
github-actions[bot]commented, Jul 10, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PayPal checkout popup window loads indefinitely; cannot ...
In the 'host' window where the popup was called from the console displays the 'Failed to execute 'postMessage' on 'DOMWindow': The target origin ......
Read more >
PayPal security guidelines and best practices
Security best practices for PayPal integrations · Secure communications · Discontinue use of the VeriSign G2 Root Certificate · Upgrade to SHA-256 ...
Read more >
3 Common PayPal Problems and How to Fix Them - MakeUseOf
These three common PayPal problems can confuse you the most. Let's troubleshoot them with three solutions.
Read more >
Why do I get a "Customer Closed Paypal" Error Message?
1) You may have accidentally exited the PayPal window prior to completing the payment process with PayPal. If so, please attempt the payment ......
Read more >
PayPal Account Limitations? Here's 5 Ways to Respond.
Limitations may be placed on accounts that bear unusual activity, are non-compliant with PayPal terms, or exceed acceptable dispute ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found