cancel
Showing results for 
Search instead for 
Did you mean: 

Who Me Too'd this topic

C# The merchant login ID or password is invalid or the account is inactive

Hi.  I am using the following C# code against a live account which is in test mode and I continue to receive the "The merchant login ID or password is invalid or the account is inactive." message.  Could someone please explain what changes I need to make in order for this to work?  Thank you!

 

NameValueCollection collection = new NameValueCollection();
collection.Add("x_login", EncryptionUtility.DecryptData(authorize.ApiLoginId));
collection.Add("x_tran_key", EncryptionUtility.DecryptData(authorize.TransKey));
collection.Add("x_delim_data", "TRUE");
collection.Add("x_delim_char", "|");
collection.Add("x_relay_response", "FALSE");
collection.Add("x_type", "AUTH_CAPTURE");
collection.Add("x_method", "CC");
collection.Add("x_card_num", txtCardNumber.Text.Trim());
collection.Add("x_exp_date", expiration);
collection.Add("x_amount", "150.00");
collection.Add("x_description", desc);
collection.Add("x_first_name", txtFirstName.Text.Trim());
collection.Add("x_last_name", txtLastName.Text.Trim());
collection.Add("x_address", txtAddress1.Text.Trim());
collection.Add("x_state", cmbState.Text);
collection.Add("x_zip", txtZipCode.Text.Trim());
collection.Add("x_test_request", "FALSE");
var request = new AuthorizationRequest(collection);
var gate = new Gateway(collection.Get("x_login"), collection.Get("x_tran_key"), false);
var response = gate.Send(request);

 

 

nmakison
Member
Who Me Too'd this topic