Forums

Authorize.NET validation question

classic 03 Aug, 2010
Hi Guys,
I have the Auth.NET plugin purchased, installed, and functioning properly.

My question relates to validating whether the payment was approved or failed. I need to be able have a dynamic form submission page that will display one message to the user if the payment was approved and successful, but display an error message if the credit card was declined.

How would I go about handling this beyond using "debug" mode.
GreyHead 04 Aug, 2010
Hi classic,

The 'Useful variables' tab int eh plugin configuration gives you some variables that you can use to process the results

Response Code: $MyPlugins->cf_Authorize_dotnet['response_code']
Response Subcode: $MyPlugins->cf_Authorize_dotnet['response_subcode']
Response Reason Code: $MyPlugins->cf_Authorize_dotnet['response_reason_code']
Response Reason Text: $MyPlugins->cf_Authorize_dotnet['response_reason_text']
Approval Code: $MyPlugins->cf_Authorize_dotnet['approval_code']
AVS Result Code: $MyPlugins->cf_Authorize_dotnet['avs_result_code']
Transaction ID: $MyPlugins->cf_Authorize_dotnet['transaction_id']

There may be more about this in Max's tutorial on the plug in (from the Tutorials menu item above).

Bob
This topic is locked and no more replies can be posted.