cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

DPM Relay response not redirecting to new page with wordpress

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!

 

 

jrod014
Member
15 REPLIES 15

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

RaynorC1emen7
Expert

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?

 

 

Look at the page source(web broswer), on your results page, is the javascript redirect there?

 

 

After the payment and on the broken results page, no the javascript is not there.

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?

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.

You said it stop before the "transaction-results", what page is that? blank page with authorize.net on the url?

 

Yup! Correct, blank page with authorize.net on the url.

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.