Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore F.A.Q/Instructions › Authorize.net Redirect Page Not Working Correctly (Thank you page issue) › Reply To: Authorize.net Redirect Page Not Working Correctly (Thank you page issue)
Authorize.net shows the content of your “Return URL” page inside the following HTTPS page
[https://secure.authorize.net/gateway/transact.dll]
They don’t fully redirect to the return URL like PayPal does… I don’t like it but its how they work. In that process, it will sometime fail to load the CSS file if your “Thank You” page doesn’t have HTTPS URL. This will cause the formatting of the page to be a little off.
The Fix
Authorize.net requires you to have HTTPS on your “Thank You” page. Simply enable HTTPS on your “Thank You” page and that will fix the issue.
You can get your hosting provider to install SSL certificate on your site. Then use a plugin like the following to make the “Thank You page” load over HTTPS:
https://wordpress.org/plugins/https-redirection/
In the eStore plugin settings you will enter a HTTPS URL like the following as your “Thank You” (Return URL) page:
https://www.example.com/thank-you
Alternatives
Here are some alternatives to try:
Option 1
Make a specific “Thank you” page for authorize.net with very minimal items on this page. The idea is that if the page doesn’t have many elements then it won’t look so messy when the stylesheet include over HTTPS fails. Add a link on this page that points to your real thank you page. This way your customers can click on this link and that will go to the thank you page and load the page correctly.
Option 2
Open the “eStore_advanced_configs.php” file and find the following line:
define('WP_ESTORE_USE_AUTH_NET_ALT_REDIRECTION', '0');
Once you find it change it to the following:
define('WP_ESTORE_USE_AUTH_NET_ALT_REDIRECTION', '1');
Now do a transaction and you shouldn’t see that previous issue as authorize.net will do the redirection slightly differently (when the user clicks the button after the transaction).
Option 3
You can use authorize.net’s AIM gateway which doesn’t have this issue. Their AIM gateway is a solution whereby the customer never leaves your site (the checkout is done on your site). Our payment gateway bundle has integration with authorize.net’s AIM gateway:
https://support.tipsandtricks-hq.com/forums/topic/wp-estore-and-payment-gateway-bundle