cancel
Showing results for 
Search instead for 
Did you mean: 

AuthorizationRequest not validating the name, address or cvv

I'm using AuthorizationRequest and passing it the NameValueCollection. I'm setting the following:

NameValueCollection nvc = new NameValueCollection();

nvc.Add("x_first_name", Profile.FirstName);
nvc.Add("x_last_name", Profile.LastName);
nvc.Add("x_address", addressTextBox.Text);
nvc.Add("x_city", cityTextBox.Text);
nvc.Add("x_state", ddlState.SelectedValue);
nvc.Add("x_zip", tbZip.Text);

nvc.Add("x_card_num", creditCardTextBox.Text);
nvc.Add("x_card_code", cvvTextBox.Text);
nvc.Add("x_exp_date", expDate);

nvc.Add("x_amount", amount.ToString("#.00"));

 

but when I do a transaction like this:

AuthorizeNet.AuthorizationRequest request = new AuthorizeNet.AuthorizationRequest(BuildAuthorizeNetParams(total));
AuthorizeNet.Gateway gateway = new AuthorizeNet.Gateway(Constants.API_LOGIN, Constants.TRANSACTION_KEY, true);
AuthorizeNet.IGatewayResponse response = gateway.Send(request);

return response;

 

It doesn't seem to use any of the additional parameters passed in.

 

Is there another parameter that needs to be set so it verifies the additional values?

Jbassking
Member
5 REPLIES 5

I'm using AuthorizationRequest and passing it the NameValueCollection.

 

Where are you passing it? All I saw is the following

AuthorizeNet.AuthorizationRequest request = new AuthorizeNet.AuthorizationRequest(BuildAuthorizeNetParams(total));

 

And BuildAuthorizeNetParams() is not in the SDKs.

RaynorC1emen7
Expert

BuildAuthorizeNetParams is my function which builds the params as I showed above. The request is being passed to the gateway..Send method as shown above.

What do you mean it is not validation the name, address or CVV?

What is in the response? Is testmode set on? Using test account?

Yes I'm using a test account with test set to true - AuthorizeNet.Gateway gateway = new AuthorizeNet.Gateway(Constants.API_LOGIN, Constants.TRANSACTION_KEY, true);

 

The result comes back Approved but I'm not including valid information such as address, city, state, cvv

Is a test account so, it doesn't really test the cc info.

To get a response read

http://community.developer.authorize.net/t5/Integration-and-Testing/Triggering-Specific-Transaction-...