Posted: April 8, 2014 at 8:40 am
|
Hello, I have the latest version of WP and EE3 i am integrating with Authorize.net SIM and i DID not force SSL. However after the payment is made and Authorize.net loads up the payment confirmation page my website freaks out due to the fact that it’s trying to load the page in HTTPS and there are some jquery and css that’s not https. |
Hi Andriy, The short answer is no, because the Payment return page loads up on Authorize.net’s server, and they load up the receipt page as https. You’ll notice that the URL is from Authorize.net. We generally recommend installing an SSL certificate for the domain and setting the return page to load securely so that all the pages assets like CSS and JavaScript can load as https to avoid this in some browsers (some browsers will still load the non-secured assets). There are workarounds to this, for example you could try a custom page template for the Thank You page that loads in the theme’s CSS inline onto the page, or even a minimal set of styles. |
|
|
Josh, |
Hi Glen, This customization would have to be applied on a per theme basis. Modern browsers such as Google Chrome will block the CSS from loading over http on an https page. This may also happen with other resources such as javascript that the theme may be using. — |
|
Lorenzo is right, this is something where you’d take your basic theme’s templates and stylesheet: header.php and basically combine them into one page, with the styles added inline. This gist shows an example of a minimal page template that’s based on the Ice Cap theme: https://gist.github.com/joshfeck/10333327 A custom page template can be uploaded to your theme, then selected in the page editor for the Thank you page by following this guide: https://codex.wordpress.org/Page_Templates#Selecting_a_Page_Template |
|
|
Hello, I do have a SSL but in wordpress it’s tricky to direct certain things through ssl and not others.. i don’t want my entire site to use https:// … so now i am running into an issue where the confirmation page image is NOT being displayed via SSL .. i think if i change that inside EE code then i’ll be ok. Can you point me to where I can change this URL <code> <tr> <td>Amount Paid/Owed:</td> <td>$10.00 <img align="absmiddle" src="http://mydomain.com/wp-content/plugins/event-espresso/images/icons/accept.png" width="16" height="16" alt="Completed" title="Completed" /> </td> </tr> <tr> <td> Payment Status: </td> <td>Completed</td> </tr></code> |
|
After further testing.. the “accept.png”image seems to be be only problem.. If i can just force it to load off https it’ll solve my errors.. where is the code to do that .. thanks! |
Hi Andriy, Could you try this plugin out: http://wordpress.org/plugins/ssl-insecure-content-fixer/ — |
|
|
Hello, my organization is running a network appliance where all of our servers are able to use http and https covered by the wildcard certificate so my server does not have ssl installed however it works just fine when user tries accessing the site with https. Can you please tell me where i can find that and change it to https so that i don’t have to hunt through code. Thanks, |
Hi Andriy, The quick way to find something in the code is to do a Find all in project using an IDE. That said, I think you’ll end up breaking other things and have to do unnecessary maintenance if you change the code directly in the function that handles the paid status icons. Instead, I can recommend using a content filter where you change the image URL for the icons to https. Here’s something you can add to your custom file add-on’s custom_functions.php file or in a custom snippet plugin <?php function my_change_payment_status_icon_url ( $content ) { $wp_plugin_url = str_replace('http://', 'https://', WP_PLUGIN_URL); define("SECURE_EVENT_ESPRESSO_PLUGINFULLURL", $wp_plugin_url . EVENT_ESPRESSO_PLUGINPATH); $content = str_replace( '<img align="absmiddle" src="' . EVENT_ESPRESSO_PLUGINFULLURL . 'images/icons/', '<img align="absmiddle" src="' . SECURE_EVENT_ESPRESSO_PLUGINFULLURL . 'images/icons/', $content); return $content; } add_filter( 'the_content', 'my_change_payment_status_icon_url', 11 ); |
|
The support post ‘authorize.net SSL error on payment confirmation’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.