cancel
Showing results for 
Search instead for 
Did you mean: 

C# SDK response returns null

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();

intersoft
Member
1 REPLY 1

@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 ?

leeta
Member