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)
- This topic has 12 replies, 5 voices, and was last updated 9 years ago by wplove.
-
AuthorPosts
-
September 12, 2013 at 10:24 am #9673latrishajacobsSpectator
When I made a purchase through my authorize.net it went through correctly but the page didn’t redirect. It went here: [https://secure.authorize.net/gateway/transact.dll] and then it looked like the checkout thanks page on my site but the page looked like it didn’t render properly. So the thank you page looks ugly after the authorize.net checkout.
When I use PayPal everything works fine. It correctly goes to the thank you page and the page renders fine [http://www.discoveryourthing.com/shop/thanks]
How do I fix this?
September 13, 2013 at 5:51 am #57726adminKeymasterAuthorize.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
September 14, 2013 at 3:42 pm #57727latrishajacobsSpectatorHow do I execute option 1? Where would I put the custom page link for authorize.net in the settings?
September 16, 2013 at 1:08 am #57728adminKeymasterI just realized that option 1 won’t work for you since you are using both PayPal and authorize.net checkout at the same time. It would have worked if you were only using authorize.net gateway. So please try option 2 for your site.
July 2, 2014 at 2:12 am #57729mozakdesignMemberQuestion – does this mean w/authorize.net each item cannot have it’s own return url?
I’m seeing this code:
[code removed after checking it]
July 2, 2014 at 11:08 pm #57730adminKeymasterAre you using a Buy Now type button? If you are doing ONE item checkout (buy now button) then yes you can have the item specific return URL. With a shopping cart checkout, it takes the global return URL from the settings because it can only specify ONE return URL per transaction.
When you click on that button/link, it will take you to the following URL (at least thats what that code has as the target URL):
[http://www.awakeningbusiness.com/teahouse/thankyou/]
November 21, 2014 at 5:56 pm #57731ForeverbarcelonaMemberI had the same issue, and I tried solution 2 as solution 1 won’t work for me (I can’t completely remove header and footer from my site pages).
However, it’s not a great solution either, because nothing ensures the client WILL click on the link to be taken to my real thank you page (where I have an optin waiting for them, so I definitely need them to get there).
Most of them won’t really click, as Authorize is telling them they’ve already paid and a notice has ben emailed to them. So why would they click on one more link? The transaction seems to be already completed.
Quite frustrating…
November 22, 2014 at 2:57 am #57732adminKeymasterHi Marta, The main issue is that authorize.net requires you to have the “Thank You” page on a HTTPS URL. What you are doing is a workaround for when you are not using a HTTPS URL for your thank you page. Hence it is not working exactly the way you want it to.
Lets do it properly and then you won’t see any issue.
The first thing you need to do is get SSL installed on your site so you can have HTTPS URL for the thank you page. Here is an example of what I mean by HTTPS URL:
https://www.example.com/thank-you/
Do you have SSL certificate install on your site already? Your hosting provider can install it for you.
November 23, 2014 at 5:39 pm #57733ForeverbarcelonaMemberHello! Thanks for your reply!
Yes, I have an SSL certificate installed. So I enabled it for the Thank you page and… It worked!!!
Thank you so much! (that’s actually something that should be added to the plugin documentation… I’d have solved me a few headaches if I had known from the beginning).
There are only a couple of minor issues, one being a heading font being incorrect (but I don’t care much about it), the second one are some special characters not beeing correctly displayed. So:
It’s been correctly sent. We’ll be contacting you shortly to reconfirm your tour details.
Reads:
It’s been correctly sent. We’ll be contacting you shortly to reconfirm your tour details.
Would there be an easy fix for that?
Thanks again for your help!
Marta
November 24, 2014 at 6:38 am #57734adminKeymasterHi Marta, is this character issue in the product sale notification or on the thank you page? Is this for PayPal transaction?
November 29, 2014 at 10:32 am #57735ForeverbarcelonaMemberHi! It’s on the Thank You Page, for an Authorize.net transaction.
November 30, 2014 at 9:45 pm #57736adminKeymasterokay that means you need to edit your “Thank You” page and correct the character encoding mistakes. Edit that page in your WordPress editor, go to the “Text” mode and make sure all the messed up characters are gone. Then save the page and view it in the browser to confirm that the page is showing everything correctly.
November 14, 2015 at 8:31 pm #57737wploveSpectatorI was having trouble with the Thank you page using Authorize.net AIM.
In WP estore/Settings/General Settings I had “Return URL” set to [https://www.singlemothersbychoice.org/thank-you/]
But post checkout was getting routed to my home page.
I finally just realized I had to put in that “Return URL” in the general settings of the Payment Gateway Bundle (Settings/Payment Gateway Bundle/General Settings).
Bingo. Thank you page started working.
-
AuthorPosts
- You must be logged in to reply to this topic.