[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:
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
- Include the paypal checkout components into your site
- 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:
Issue Analytics
- State:
- Created 3 years ago
- Comments:15 (1 by maintainers)
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!!
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.