Mixed Content (SSL) using Pro Site

Hello Superhero!

I have installed on my site the SitePro and Domain Mapping plugins. Today I did the setup of my wildcard SSL certificated and using Mapping Domain, I choose Force HTTPS on front end pages.

Well, I want to use PayPal Checkout Pro on my site and for this, I need a very secure page, right? But, the gateway uses an non SSL endpoint to process some informations, and this is not good…

The end point of the form action have the same path that my page, but without https. If you want to see… look for source code on https://imobilix.com.br/checkout

I need to fix this! Thank you!

  • Jefferson
    • The Incredible Code Injector

    Luís, thank you for your response.

    But, I believe that problem is logical, and maybe, the plugin code needs a fix. Looking around the code, the file gateway-paypal-express-pro.php, at line 186 (this also in the code of others gateways), have:

    `$content .= ‘<form action=”‘ . $psts->checkout_url( $blog_id ) . ‘” method=”post” autocomplete=”off” id=”paypal-payment-form”>

    The instance $psts get the url of my site, but the original url of my site uses http, not https. The HTTPS exists because I’m using Domain Mapping to create redirects roles. Is possible get some ways to fix this, but I think that is necessary the WPMU DEV to say the better way and offer a new release of the plugin.

    Until then I will work with my own patch and do some testing to see if it works. If you have a better solution, without need to get access for my admin panel, I will appreciate.

    Cheers,

    Jefferson

  • Luís
    • Support

    Hi Jefferson ,

    Hope you’re doing well today!

    I asked access to your website precisely to check the URL and the way you used to force the checkout page to be SSL.

    However, after speak with the developer, this needs to be handled in a different way and should be considered a bug.

    In meanwhile, can you try add this code to your functions.php?

    add_filter('psts_force_ssl', 'psts_force_ssl' );

    function psts_force_ssl() {
    return true;
    }

    I hope this information has been helpful. If I can help you in this or other questions, please let me know!

    Cheers, Luís

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.