Hello Everyone,
I've been searching the boards for a few days and have not found the answer to my problem. I'm hoping someone can help me out.
I'm having trouble redirecting users back to my relay url using the javascript redirect. I'm using Wordpress with this project.
Here is the weird thing, If i use the main post url the form is on, the redirect works fine. But if I use a new page called "transaction results and redirect to that page, the response gets stuck on https://test.authorize.net/gateway/transact.dll and the page is broken (no css and ugly). The javascript does not redirect at that point. It's weird. Check out the screenshots.
Using the post url with successful redirect back to main post (Not what I want to do, I want to redirect to a different page)
http://awesomescreenshot.com/05a2uvbte3
Broken redirect to new page I would like the response on.
http://awesomescreenshot.com/0a12uvcs3c
Any help to point me in the right direction would be appreciated.
Thanks!
05-23-2014 11:49 AM
Are you using absolute path on the javascript redirect?
Use the browser developer net traffic/console to see if there is an error.
IE F12 Developer Tools
Firefox Tools - Web Developer
Chrome Tools - Developer Tools
05-23-2014 12:01 PM
Yes, the get_permalink() function displays the absolute path.
Chrome developer tools show:
[blocked] The page at 'https://test.authorize.net/gateway/transact.dll' was loaded over HTTPS, but ran insecure content from 'http://www.mywebsite.com/wp-content/themes/MPC705/style.css': this content should also be loaded over HTTPS.
But why would it redirect back to the same post url just fine but block the results page?
05-23-2014 12:14 PM
Look at the page source(web broswer), on your results page, is the javascript redirect there?
05-23-2014 12:18 PM
After the payment and on the broken results page, no the javascript is not there.
05-23-2014 12:37 PM
Ok. I think is because it try to do the get_permalink() method on authorize.net site, which is not supported.
can you just add javascript redirect code right at your page?
05-23-2014 12:42 PM
But the tranaction doesn't even get that far. It stops before the "transaction-results" page so I cant add the javascript redirect directly to that page.
05-23-2014 04:49 PM
You said it stop before the "transaction-results", what page is that? blank page with authorize.net on the url?
05-23-2014 05:17 PM
Yup! Correct, blank page with authorize.net on the url.
05-23-2014 05:43 PM
So the real problem is not getting to the relay response page?
Or you have to list the pages your trying to do because I not picturing it correctly.
05-23-2014 06:01 PM - edited 05-23-2014 06:01 PM