cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

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?

 

froz3nice
Member
2 REPLIES 2

Hello @froz3nice

 

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

 

Richard

RichardH
Administrator Administrator
Administrator
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();
            controller.Execute();
            var response = controller.GetApiResponse();

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