Paypal Smart Payment Buttons plugin issues

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years ago
Not long after posting a question here, I was able to solve the problem for the "PayPal Smart Buttons".
It turns out that if you have HTML minification turned on (General Settings), it strips out https from the sdk url.
It converts "https://www.paypal.com/sdk/js"  to "//www.paypal.com/sdk/js".

This creates a new issue, since HTML minification is a performance improvement, we have to turn it off and downgrade our performance if we want to use  "PayPal Smart Buttons" or anything else that requires "https" within the HTML content to function properly.  
This is a defect/bug for HTML minification in Nop.

So the question that has now evolved is how do we turn on HTML minification, without having "https" being stripped out, or at least is there a way to control that within the context of a plugin?
3 years ago
Sizzler wrote:
Not long after posting a question here, I was able to solve the problem for the "PayPal Smart Buttons".
It turns out that if you have HTML minification turned on (General Settings), it strips out https from the sdk url.
It converts "https://www.paypal.com/sdk/js"  to "//www.paypal.com/sdk/js".

This creates a new issue, since HTML minification is a performance improvement, we have to turn it off and downgrade our performance if we want to use  "PayPal Smart Buttons" or anything else that requires "https" within the HTML content to function properly.  
This is a defect/bug for HTML minification in Nop.

So the question that has now evolved is how do we turn on HTML minification, without having "https" being stripped out, or at least is there a way to control that within the context of a plugin?


As far as I remember, there was a problem with scheme stripping on HTML minification, which we were fixing. If you are using the source version, make sure that these changes are present in ServiceCollectionExtensions.cs, or just download release 4.20 again.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.