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?
05-08-2012 07:35 AM
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.
05-08-2012 08:07 AM
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.
05-08-2012 01:23 PM
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?
05-08-2012 01:51 PM
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
05-08-2012 02:10 PM
Is a test account so, it doesn't really test the cc info.
To get a response read
05-08-2012 02:18 PM