solidus_paypal_braintree icon indicating copy to clipboard operation
solidus_paypal_braintree copied to clipboard

Uncaught TypeError: Cannot read property '_solidusClient' of undefined

Open giovantenne opened this issue 6 years ago • 5 comments

Upgrading to the current version from here to enable the "3D Secure 2" feature I receive this JavaScript error after submitting a new credit card on /checkout/payment, before being redirected to /checkout/confirm.

VM1175 checkout.self-ffd724ca9bee44078d30ed62ba2966dff1779121f50f76aef64aaadb49a922ba.js:46 Uncaught TypeError: Cannot read property '_solidusClient' of undefined
    at HTMLFormElement.<anonymous> (VM1175 checkout.self-ffd724ca9bee44078d30ed62ba2966dff1779121f50f76aef64aaadb49a922ba.js:46)
    at HTMLFormElement.dispatch (VM1189 jquery.min.js:2)
    at HTMLFormElement.y.handle (VM1189 jquery.min.js:2)

Confirming the order show the following Braintree error message:

Customer does not have any credit cards. (91511)

giovantenne avatar Nov 15 '19 14:11 giovantenne

the same issue

vokshirg avatar Feb 24 '20 11:02 vokshirg

@zener79 @vokshirg I wasn't able to replicate this issue, can you provide more details about your setup, and/or verify that this is still an issue? Thanks!

seand7565 avatar Oct 21 '20 20:10 seand7565

@seand7565 I will not replicate this issue too for now )) I suppose you can close it, thanks!)

vokshirg avatar Oct 22 '20 13:10 vokshirg

Hey

I was working on an issue that raised the same error in the past few days. Turned out that the checkout form was being submitted twice due to a change from form_for to form_with which is remote by default. Adding local: true to the form fixed the issue.

Not sure if this is the case, but it's worth documenting it regardless.

igorbp avatar Oct 23 '20 18:10 igorbp

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 11 '22 11:11 stale[bot]