PayPal Checkout Payment option stop working with “&ver” added to a JS call
-
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″ 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
- The topic ‘PayPal Checkout Payment option stop working with “&ver” added to a JS call’ is closed to new replies.