05-08-2015 10:27 AM
I am using the DPM method for a payment form on a clients website,
However issues occur when the payment is unsuccessful, i am just left on the authorize page with a white page and the error message in black text, ideally i would want the page to redirect also or at least have some control over the look of the page.
Any help would be appreciated,
05-08-2015 01:40 PM
The erorr message is relating to the issue with the card for example "Card Number Is Wrong".
Yes I do, although surely it needs to be there incase of a successful order?
05-11-2015 01:51 PM
Well, FWIW, we don't do anything different. When we receive the DPM POST from authorize.net, all we do is log the result and return this:
<html> <head> <noscript> <meta http-equiv="refresh" content="0;url=<%= $url_with_token %>" /> </noscript> </head> <body onload="document.forms.submit();"> <form method="post" action="<%= $url %>"> <input type="hidden" name="token" value="<%= $token %>" /> </form> Please wait, processing... </body> </html>
The $url points back to the status result page on our site. There, we show either the success or error message, depending on the previously stored result.