If I pass in empty string for cardCode, response returns as null. I thought Authorize.NET always returns some kind of response..
var creditCard = new creditCardType
{
cardNumber = "4111111111111111",
expirationDate = "1028",
cardCode = “”
};
var paymentType = new paymentType { Item = creditCard };
var transactionRequest = new transactionRequestType
{
transactionType = transactionTypeEnum.authOnlyTransaction.ToString(),
amount = 10,
payment = paymentType
};
var request = new createTransactionRequest { transactionRequest = transactionRequest };
var controller = new createTransactionController(request);
controller.Execute();
var response = controller.GetApiResponse();
03-15-2019 11:55 AM
@intersoft wrote:If I pass in empty string for cardCode, response returns as null. I thought Authorize.NET always returns some kind of response..
var creditCard = new creditCardType
{
cardNumber = "4111111111111111",
expirationDate = "1028",
cardCode = “”
};
var paymentType = new paymentType { Item = creditCard };
var transactionRequest = new transactionRequestType
{
transactionType = transactionTypeEnum.authOnlyTransaction.ToString(),
amount = 10,
payment = paymentType
};
var request = new createTransactionRequest about { transactionRequest = transactionRequest };
var controller = new createTransactionController(request);
controller.Execute();
var response = controller.GetApiResponse();
Did this resolved ?
03-13-2020 11:50 PM