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

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

This is the page im getting after payment with the url being https://test.authorize.net/gateway/transact.dll

See screenshot

http://awesomescreenshot.com/0a12uvcs3c

 

It should redirect to www.mywebsite.com/transaction-results but the javascript doesn't fire. No redirect is happening.

 

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

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

So it did get to the relay response page,

 

it just the page didn't have the javascript code to redirect to

www.mysite.com/transaction-results

 

that why I ask why can't you put the javascript code and not the wordpress code to redirect

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

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

Do it did not grab the results page, nor does it redirect to the results page.

 

This is really frustrating.

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

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

Also, I'm using the DPM class and it has this method.

 

public static function getRelayResponseSnippet($redirect_url){
return "<html><head><script language=\"javascript\">
<!--
window.location=\"{$redirect_url}\";
//-->
</script>
</head><body><noscript><meta http-equiv=\"refresh\" content=\"1;url={$redirect_url}\"></noscript></body></html>";
}

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

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

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

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

I'm still having the same problem.

 

It did work for a bit but now the javascript is not redirecting to the redirect url.