Just copy and paste from my post, there are other edits as well:mikeinterserv wrote: ↑Fri Feb 05, 2021 7:47 amIn short replace line 17 and 18 in
catalog/view/theme/default/template/extension/module/pp_button.twig
WithCode: Select all
//--></script> <script src="//www.paypalobjects.com/api/checkout.js" async></script>
or you can cut and paste the entire file from switches post aboveCode: Select all
if (typeof window.paypal == 'undefined') { $.getScript('//www.paypalobjects.com/api/checkout.js'); } //--></script>
I would not have found this solution myself so thanks again to switch
^ The code above will fix the "duplicate script", but if you require the confirm button to work with other payment methods, refer to my post in full which has both fixes. viewtopic.php?f=202&p=813089#p813087
Finally this is only valid on OC installs from 3.0.0.0 - 3.0.3.2, in later OC versions pp_button.twig was removed in favor of the the smart button.
-