I've implemented DPM and it's running fine in test mode. However, I'm having a problem with error handling.
Say I make a mistake when typing in my card number. What I'd like to happen is to register this error in relay_response and take user back to the input form, or at least display appropriate message on my site. Unfortunately, what I am getting now is default authorize.net error:
An error occurred while trying to report this transaction to the merchant. An e-mail has been sent to the merchant informing them of the error. The following is the result of the attempt to charge your credit card. The credit card number is invalid. |
On top of that all, I am left on this url: https://test.authorize.net/gateway/transact.dll instead of at least being taken back to my site. What am I doing wrong here? In relay_response, I do $response->approved to see if transaction is successful, but that doesn't seem to help - I still get the same message on the same url.
Solved! Go to Solution.
07-19-2012 02:43 PM
That mean something is not working on your relay response page for delined/error transaction.
07-20-2012 08:01 AM
Doesn't look like it make it to your relay response page.
Read
Relay Response Basics and Troubleshooting
07-19-2012 04:08 PM
OK, I've read it and the only thing that I can conclude from the text is that I have to make sure credit card number is valid prior to posting the form.
Any other good piece of advice?
07-20-2012 07:07 AM
That not it. The problem is that your relay response page is not getting call.
That why you getting the
An error occurred while trying to report this transaction to the merchant. An e-mail has been sent to the merchant informing them of the error. The following is the result of the attempt to charge your credit card.
Did you do the 5 check the following list of possible causes?
07-20-2012 07:17 AM
Thanks for the quick reply.
Well, I don't need to check them, because my relay response page is working perfectly fine when I input regular card number and the rest of the data. This error occurs when I input the wrong data on purpose, in order to produce error (because I wanted to write the code to handle it somehow).
07-20-2012 07:28 AM
That mean something is not working on your relay response page for delined/error transaction.
07-20-2012 08:01 AM
Check your error.log for your webserver, it might indicate a line number on where it goes wrong, as RaynorC1emen7 indicates.
07-20-2012 10:13 AM - edited 07-20-2012 10:15 AM
That was it - my code for transaction handling was bad. Thanks a lot!
07-21-2012 08:48 AM