Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Member
Posts: 9
Registered: ‎05-23-2014

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!

 

 

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: DPM Relay response not redirecting to new page with wordpress

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

Member
Posts: 9
Registered: ‎05-23-2014

Re: DPM Relay response not redirecting to new page with wordpress

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?

 

 

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: DPM Relay response not redirecting to new page with wordpress

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

 

 

Member
Posts: 9
Registered: ‎05-23-2014

Re: DPM Relay response not redirecting to new page with wordpress

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

Highlighted
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: DPM Relay response not redirecting to new page with wordpress

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?

Member
Posts: 9
Registered: ‎05-23-2014

Re: DPM Relay response not redirecting to new page with wordpress

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.

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: DPM Relay response not redirecting to new page with wordpress

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

 

Member
Posts: 9
Registered: ‎05-23-2014

Re: DPM Relay response not redirecting to new page with wordpress

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

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: DPM Relay response not redirecting to new page with wordpress

[ Edited ]

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.