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] Debit/Credit card button clicked and script crashes forcing form to disappear

See original GitHub issue

🐞 Describe the Bug

Making this a new thread since I think the error is different than what other people are experiencing. I am currently trying to use the paypal buttons in sandbox mode, however when I click on the Debit or Credit Card option, it instantly takes me to the “Something went wrong. We’ll take you back to checkout so you can try again.” state. The console logs show this: Screen Shot 2020-06-10 at 10 44 43 PM

Basically, the script is trying to parse a JSON that’s already a JSON so it ends up parsing [object Object] and throws an error within the debit/credit card form iframe and gets me to the “Something went wrong. We’ll take you back to checkout so you can try again.” state.

🔬 Minimal Reproduction

  1. Include the paypal checkout components into your site
  2. Click on the debit or credit card button

😕 Actual Behavior

I included the image of the error logs above, so I won’t paste it again here. Basically as I said before, the script crashes forcing the whole checkout form to crash in the iframe.

🤔 Expected Behavior

I expect it to finish displaying the debit/credit card form and allow me to fill it out and pay without leaving the page.

🌍 Environment

  • Chrome Version: - 79.0.3945.130
  • OS version: - 10.15.4
  • SDK version (window.paypal.version): - 5.0.128

Affected browsers

It seems like only chrome is affected. I tested on safari and it worked fine!

➕ Additional Context

Here is a video of it: ezgif-3-7e134f065d75

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
kraj011commented, Jun 15, 2020

Thank you so much for isolating exactly what’s going on! I’m going to go ahead and forward this issue thread to the twoseven team to see what they can do!!

2reactions
gregjopacommented, Aug 11, 2020

Just wanted to provide a status update. We have not released a fix for this yet. We are coordinating this change internally and hope to have it released in the next couple weeks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lag with opening the form after clicking the “Debit or Credit ...
Hi,. It takes a few seconds after clicking the “Debit or Credit Card” button, and before the form opens. Improving it would be...
Read more >
QBWin.log Error: GetDecryptedCreditCardNumber Failed&quot
BAS form disappears in the new Reckon Accounts Hosted ... Unknown Error when processing Credit Card payment for a Reckon Accounts Hosted subscription...
Read more >
Browser crashes without any error - reason <button> inside ...
The default behavior of a "button" element inside a "form" is to submit that form, which is what appears to happen when the...
Read more >
1006786 - Harassment and signal squelchening Description
I refused and they crashed my computer ruining all the drives. I ... was transmitted to include credit cards, photos and that I...
Read more >
Tip of the Week | Information Technology Services (ITS)
Also, do not buy gift cards as a favor for someone on campus. It's a SCAM! If these scams come to your UTHSC...
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