Integration and Testing

Authorize.Net API questions and help with your payment integration.

Posts: 2
Registered: ‎08-15-2016

Cannot add customer to ChargeCreditCard transaction

Hello, when i make a test transaction i want customer spot to be filled with some info.I've tried to add customer by adding CustomerDataType object to TransactionRequest  but customer info does not appear in sandbox(in C# language) . What is the other way to add a customer which would be visible in sandbox transactions window?


Posts: 2,765
Topics: 57
Kudos: 272
Blog Posts: 67
Registered: ‎12-05-2011

Re: Cannot add customer to ChargeCreditCard transaction

Hello @froz3nice


Could you provide more detail, for example a sample request and response from the gateway?



Posts: 2
Registered: ‎08-15-2016

Re: Cannot add customer to ChargeCreditCard transaction

var transactionRequest = new transactionRequestType
                transactionType = transactionTypeEnum.authCaptureTransaction.ToString(),
                amount = model.Price,
                payment = paymentType,
                customer = new customerDataType() { id = "1",email="jkl"}//just test values

            var request = new createTransactionRequest { transactionRequest = transactionRequest };
            var controller = new createTransactionController(request);
            ChargeCreditCardResponse cr = new ChargeCreditCardResponse();
            var response = controller.GetApiResponse();

The whole charging is working, but i can't figure out how to add customer info