Stripe not working

This topic contains 10 replies, has 2 voices, and was last updated by  Evert 4 years, 6 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #36261

    Hello Stephen, next part with questions. 😉

    I install stripe as an additional gateway in addition to offline payment. Everything works properly until I activate Stripe.

    The total amount and any discount code as well as the payment no longer work.

    Keys for test and sandbox mode are active. Am I doing something wrong?

    Evert
    #36283

    Edit: It seems like there is a conflict. When I activate Stripe the venue map disappears.
    When I turn off Stripe, everything works properly again.

    Evert
    #36297

    Hi Evert,

    Can you provide a link to the site with this issue? I’ve tested Stripe with discount codes, and I’ve never encountered an issue with the venue map.

    It could possible be a javascript error on the page, so seeing the page itself with stripe activated might indicate an issue.

    Stephen Harris
    #36308

    Hello Stephen,

    I don’t think it will be in discount codes, but probably something like java. It seems that the buttons stop functioning.

    Stripe is active in sandboxmode

    Test event

    Evert
    #36339

    Hello Stephen,

    As you will understand it is necessary that I can continue working on the website.
    Now 48 hours later I do not know whether you are working on this or not.
    So I have to turn Stripe off every now and then to continue.

    If stripe is not activated, just respond to the message here and I will activate it immediately

    Evert
    #36351

    Hi Evert,

    In the browser console I can see this error:

    autoptimize_116f23c669690b55a274b47dc04b21df.js:292 Uncaught TypeError: Cannot read property ‘is_recurring’ of undefined

    It appears you have a plug-in which minifies Javascript files, and the output from that is causing errors. I’d recommend you disable that plug-in to see if the plug-in functions correctly.

    The plug-in minifies its own javascript files, and I have seen before issues when another plug-in tries to minify those files again.

    Stephen Harris
    #36358

    Hello Stephen, with autoptimize and cache plugin disabled the problem remains.
    These are the only two that minimize anything.

    I have no errors as soon as I turn Stripe off. I keep finding it strange that every element of EO and website work well until Strip comes on. Turning off extra plugins does not help either.

    I have deactivated autoptimize, I no longer encounter the mentioned error.
    Same result. Do you have a suggestion where I could look?

    Evert
    #36359

    I’m still seeing those errors.

    Could you try adding

    define('SCRIPT_DEBUG', true);
    

    to wp-config.php

    this will tell WordPress to use the de-minified versions of the javascript file, so it may help debug the issue.

    Stephen Harris
    #36360

    Actually, I think I can see what is happening here.

    I think you’ve got a plug-in that replaces <img src='...'>

    <img data-src="..." class="lazyload" src="data:image/gif;base64,..."><noscript><img src='...'></noscript>
    

    However, it’s doing that within /* <![CDATA[ */ ... /* ]]> */ tags which is breaking the js variable definitions and thus causing the console errors. Those <img>s are only present in the Stripe plug-in (i.e. the credit card icons that appear when selecting the stripe payment gateway – hence its only a problem when stripe is enabled.

    If you’re aware of any such plug-in/theme that does that, it might be worth deactivating to see if that fixes the issue.

    Stephen Harris
    #36364

    Obviously if its an issue with the theme or a critical plug-in we can look into fixing it – but this is just to identify what the issue is.

    Stephen Harris
    #36365

    Stephen, will you marry me? 😉

    Deactivating Smush-it does the trick. Lazy load was active there.
    But autoptimize also gives a problem.

    At least I can move forward with this.
    Is this still interesting for you to find out why?

    Perhaps that contributes to the EO plug-in.

    Evert
Viewing 11 posts - 1 through 11 (of 11 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.