• Resolved Ludovic Bablon

    (@maboutiquewp)


    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]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support qtwrk

    (@qtwrk)

    please provide the report number

    you can get it in toolbox -> report -> click “send to LiteSpeed”

    Thread Starter Ludovic Bablon

    (@maboutiquewp)

    ZJYVNIWH

    Plugin Support qtwrk

    (@qtwrk)

    I didn’t see any JS error on that page, I assume I had to add some item first ?

    please explain a bit how do I trigger the error ?

    Thread Starter Ludovic Bablon

    (@maboutiquewp)

    I’ve told you : “To reproduce, put any service in your cart, go on the cart then on the payment page.”

    For ex, try to buy this one
    https://boutique-wp.fr/produit/test-klarna/
    and proceed until you’re on the /paiement page.

    Then, you’ll see that the credit card form doesn’t render.

    Plugin Support qtwrk

    (@qtwrk)

      if (strpos($_SERVER['REQUEST_URI'], 'paiement') !== FALSE) {
        define('LSCWP_V', '1');
        }

    please try add this at top of your wp-config.php , see how it goes

    Thread Starter Ludovic Bablon

    (@maboutiquewp)

    Thank you, it worked !

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘JS error on payment page with Payment Plugins for Stripe WooCommerce’ is closed to new replies.