• Resolved asalata

    (@asalata)


    Hi,

    I’m getting an issue when using Asset CleanUp. When I install the plugin, my payment option stop working at my Checkout Page. I use the plugin “PayPal Brasil para WooCommerce”.

    The funny thing is I get this issue even if Asset CleanUp is in Test Mode. I just need to activate the plugin and then my Checkout stop showing PayPal <div>.

    This issue started when Asset CleanUp was updated to version 1.3.6.6. So I went back and installed version 1.3.6.5 and I just did a File Comparison between HTML outputted from my Checkout Page looking for the difference.

    What I found is that with version 1.3.6.6 or above (or just using Pro version), a parameter “ver” was added to a .js call for PayPal with the actual WordPress version. The call when having this issue is:

    <script src=”https://www.paypal.com/sdk/js?currency=BRL&client-id=AQkgcdMb7ScO40lm2fKy_RzqEivdNWd13uzCe3JVXcOQJKu5JAPMUQiXV2FwLICSAE-LcdSrwjmJubUa&commit=false&locale=pt_BR&disable-funding=card&ver=5.5.1&#8243; id=”paypal-brasil-scripts-js”></script>

    When I deactivate Asset CleanUp (or upload version 1.3.6.5) I don’t have “&ver=5.5.1” added to the src attribute.

    I set up a clone install if you guys want to have a look:
    https://cox.andresalata.com/loja/

    Can you guys please help me here so I can keep using Asset CleanUp in this install (which is the most important WP install of my company since it’s where I sell my products)??

    Thank you

Viewing 1 replies (of 1 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @asalata first, my sincere apologies for missing replying to this ticket! I want to make it up to you and offer you a license of the Pro version, so feel free to write to me here: https://www.gabelivan.com/contact/

    As for the problem you’re having, indeed, “ver” was added by default to assets. It was a bug and although it didn’t affect the local files, it did affect the external ones that are more secure/sensitive. So, please update to the latest version of the plugin (which has the fix) or even better to the development version which has extra fixes (here’s how you could get it: https://assetcleanup.com/docs/how-to-get-the-development-version-of-asset-cleanup/).

Viewing 1 replies (of 1 total)
  • The topic ‘PayPal Checkout Payment option stop working with “&ver” added to a JS call’ is closed to new replies.