How to Fix and Debug Error With Authorize Net DPM Gateway for VPASP 7.00

How to Fix and Debug Error With Authorize Net DPM Gateway for VPASP 7.00

If you are using Authorize Net DPM gateway and keep getting this error message :

Your credit card transaction failed
Please select another payment method
This transaction cannot be accepted

It could be related to your Authorize Net account settings.

There are some settings you need to check:

1. Login to your Authorize Net merchant at : https://account.authorize.net/
And then go to : ACCOUNT > click "Transaction Details API" link in the "General Security Settings" section.

2. Click the "Enable Transaction Details API" button.

3. After that, please also go to : ACCOUNT > click "API Login ID and Transaction Key" link in the "General Security Settings" section.
There you will see your API Login ID info e.g. : xxxxxxxxxxx

Please check the API Login ID showing there with the x_loginID value you already set in the file autconfig.asp. Both must be same :

const x_loginID = "xxxxxxxxxxx"

Also, while you are still at the API Login ID and Transaction Key page, please get a new transaction key in the "Create New Transaction Key" section.
Once you get a new transaction key, please put it into the x_transactionKey value inside the file autconfig.asp:

const x_transactionKey = "xxxxxxxxxxxxxxxxxxxxxx"

4. Next step is to check your account is in live mode or not.
Go to your Authorize Net merchant menu : ACCOUNT > click "Test Mode" link in the "General Security Settings" section.
If you see this : This account is currently in LIVE MODE, then your setting is already correct.
If your account is in test mode, make sure you turn it to live mode.

5. Go to your file autconfig.asp and make sure you have set to run in live mode :

const x_testMode = "false"


6. Save the file autconfig.asp and upload to your site.

After the above changes, you can try to checkout again using Authorize Net DPM gateway.

If you are still getting the same error msg as below :

Your credit card transaction failed
Please select another payment method
This transaction cannot be accepted


Then you will need to debug this more as the above error message does not specify what is the actual error response code returned by Authorize Net.

To debug, please follow these steps :

1. Open file autresult.asp using notepad or text editor.

2. Locate this code :

x_MD5_Hash = cleanchars(request("x_MD5_Hash"))


3. Directly below it, please insert this debugging code :

response.write "x_response_code = " & x_response_code & "<BR>"
response.write "x_response_reason_code = " & x_response_reason_code & "<BR>"
response.write "x_response_reason_text = " & x_response_reason_text & "<BR>"
response.end


4. Save the file and then upload to your site.

5. Run a test checkout again using Authorize Net DPM and you should see the actual error response code returned by Authorize Net e.g :

x_response_code = 3
x_response_reason_code = 251
x_response_reason_text = This transaction has been declined.


To getting know what is the error msg meaning returned in the x_response_reason_code, you can find out in the tool page below :
http://developer.authorize.net/tools/responsereasoncode/

In our example above, the x_response_reason_code showing 251. Please go to the tool page http://developer.authorize.net/tools/responsereasoncode/ and enter 251.
You should be displayed with information about error 251 like below :

Response Reason Code : 251
Response Reason Text : This transaction has been declined.
Integration Team Suggestions : This transaction was submitted from a blocked IP address.
Other Suggestions : The transaction was declined as a result of triggering a Fraud Detection Suite filter.

Based on the information as per example above, you should be able to determine and work out what causing it.

In the example above, it is clear that transaction declined related to Fraud filter.
In this case, you will need to check your Authorize Net merchant settings that related to Fraud filter.

Solution for the example above, can be as below:

1. Login to your Authorize Net merchant at : https://account.authorize.net/
And then go to : TOOLS > click "Fraud Detection Suite" link in the left sidebar.

2. Make sure you turn off / disable any fraud settings that causing the card payment to fail.
Please check any fraud filter and if they are no needed, you can turn them off e.g. :

- Enhanced AVS Handling Filter
- Regional IP Address Filter
- Amount Filter
etc...

3. Test again to checkout using Authorize Net DPM.

If the debugging msg returned something like below :

x_response_code = 1
x_response_reason_code = 1
x_response_reason_text = This transaction has been approved.

That means the payment is successful and you can take out the debugging code you have inserted earlier.


Times Viewed:
7355
Added By:
Wilson Keneshiro
Date Created:
6/28/2014
Last Updated:
6/28/2014