I'm using AIM in C#. THis is my method that send request to Authorize.NET API:
var oForm = new FormCollection();
oForm.Add("x_card_num", CardNumber);
oForm.Add("x_exp_date", ExpFull);
oForm.Add("x_card_code", Cvc);
oForm.Add("x_first_name", FirstName);
oForm.Add("x_last_name", LastName);
oForm.Add("x_zip", Zip);
oForm.Add("x_country", "USA");
oForm.Add("x_amount", "0.01M");
oForm.Add("x_type", "AUTH_ONLY");
var oRequest = new AuthorizationRequest(oForm);
//step 2 - create the gateway, sending in your credentials
var oGate = new Gateway(ApiLogin, TransactionKey, isTestAccount);
//step 3 - send request
var response = oGate.Send(oRequest);I need AVS to verificate via ZIP code ONLY, so I don't require it on buyer for hence no info sent to Authorize.NET.
And I need the CCV to verificate via CVC.
WHen I submit transaction it gets approved, but this is what I get in Transaction details page.
| Address Verification Status: | AVS Not Applicable (P) |
| Card Code Status: | Not Applicable |
| Customer Billing Information | |
| Name: | |
| Company: | |
| Address: | |
| City: | |
| State/Province: | |
| Zip Code: | |
| Country: | |
| Phone: | |
| Fax: | |
| Email: | |
| Customer ID: | |
| Customer Type: | |
| Customer TaxID/SSN: | |
| DL Number: | |
| DL State: | |
| DL DOB: |
From DEBUG mode I know for sure that all parameters in Controller method are present and not null. BUt for some reason they are not passed correctly to authorize.net. I don't know how that is possible: the credit card number is passed correctly.
Solved! Go to Solution.
โ01-14-2013 12:18 PM
Found out, that Authorize.NET SDK for C# is wrong. You really have to call it "Sample Code", since it has to go a long way to become SDK.
โ01-15-2013 06:26 AM
Are you running on production? or test server?
On production server, you won't get a response if it is in test mode.
On test server, use the follow to test
โ01-14-2013 12:54 PM
Found out, that Authorize.NET SDK for C# is wrong. You really have to call it "Sample Code", since it has to go a long way to become SDK.
โ01-15-2013 06:26 AM
Personally, I would use the sample code, not the SDKs.
โ01-15-2013 06:35 AM