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 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)


Broken redirect to new page I would like the response on.


Any help to point me in the right direction would be appreciated.






This is the page im getting after payment with the url being

See screenshot


It should redirect to but the javascript doesn't fire. No redirect is happening.


So it did get to the relay response page,


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


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

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


This is really frustrating.

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


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

I'm still having the same problem.


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