JS error on payment page with Payment Plugins for Stripe WooCommerce
-
Hello.
I have those JS errors on my payment page :
local-payment.js:6 Uncaught
TypeError: Cannot read properties of undefined (reading ‘LocalCheckoutGateway’) at local-payment.js:6:29 at local-payment.js:1:500 at local-payment.js:1:572(anonymous)@local-payment.js:6(anonymous)@local-payment.js:1(anonymous)@local-payment.js:1
v3/?ver=3.3.70:1 Uncaught
IntegrationError: Missing value for options: amount should be a number. at ie (v3/?ver=3.3.70:1:198965) at ae (v3/?ver=3.3.70:1:199037) at yr (v3/?ver=3.3.70:1:337272) at new t (v3/?ver=3.3.70:1:346091) at e.<anonymous> (v3/?ver=3.3.70:1:409297) at e.<anonymous> (v3/?ver=3.3.70:1:102575) at e.o (v3/?ver=3.3.70:1:450696) at wc_stripe.BaseGateway.create_stripe_elements (wc-stripe.min.js:1:697) at new wc_stripe.BaseGateway (wc-stripe.min.js:1:578) at y (klarna-message.js:1:8076)
And, the “credit card” form doesn’t work.
To reproduce, put any service in your cart, go on the cart then on the payment page.
If I deactivate LiteSpeed,
or if I visit https://boutique-wp.fr/paiement/?LSCWP_CTRL=before_optm,
or I I visit https://boutique-wp.fr/paiement/ loggued as admin,
then it works fine, the credit card form renders normally.
The JS files concerned by the error are linked to my use of the plugin Payment Plugins for Stripe WooCommerce.
I have tried several solutions :
- I deactivated LiteSpeed on the “paiement” page
- I have put “/paiement/” in the “exclude URI field on the page optimization settings
- I have put local-payment.js, wc-stripe.min.js, and klarna-message.js in the “exclude JS” list, and also in the other lists (reported defered etc)
- of course I have purged the whole cache
Nothing worked.
Can you help me?
The page I need help with: [log in to see the link]
- The topic ‘JS error on payment page with Payment Plugins for Stripe WooCommerce’ is closed to new replies.