private void ShowProcessEMVSRED() { var requestDto = new ProcessEMVSREDRequestDto(); try { requestDto.NonremovableTags = Read_Mandatory_String_Input("NonremovableTags"); requestDto.PayloadResponseFieldsToMask = Read_Mandatory_String_Input("PayloadResponseFieldsToMask"); requestDto.CustomerCode = Read_Mandatory_String_Input("CustomerCode"); requestDto.Username = Read_Mandatory_String_Input("Username"); requestDto.Password = Read_Mandatory_String_Input("Password"); requestDto.CustomerTransactionID = Read_Mandatory_String_Input("CustomerTransactionID"); requestDto.EMVSREDData = Read_Optional_String_Input("EMVSREDData"); requestDto.EncryptionType = Read_Optional_String_Input("EncryptionType"); requestDto.KSN = Read_Optional_String_Input("KSN"); requestDto.NumberOfPaddedBytes = Read_Intuser_Input("NumberOfPaddedBytes"); requestDto.PaymentMode = Read_PaymentMode_Input("PaymentMode"); requestDto.Amount = Read_Decimal_Input("Amount"); requestDto.ProcessorName = Read_Optional_String_Input("ProcessorName"); requestDto.TransactionType = Read_TransactionType_Input("TransactionType"); var svc = _serviceProvider.GetService <IProcessEMVSREDClient>(); var result = svc.ProcessEMVSRED(requestDto); if ((result.Response != null) && (result.SoapDetails != null)) { Console.WriteLine("=====================Response Start======================"); Console.WriteLine("Request:"); Console.Write(PrettyXml(result.SoapDetails.RequestXml) + "\n"); Console.WriteLine("Response:"); Console.Write(PrettyXml(result.SoapDetails.ResponseXml) + "\n"); Console.WriteLine("=====================Response End======================"); Console.WriteLine("=====================Parsed Response Start======================"); Console.WriteLine(result.Response.ToString()); Console.WriteLine("=====================Parsed Response End======================"); } else { Console.WriteLine("Response is null, Please check with input values given and try again"); } } catch (Exception ex) { Console.WriteLine("Error Occurred while Processing ProcessManualEntry" + ex.Message.ToString()); } }
public (ProcessEMVSREDResponseDto Response, RawSoapDetails SoapDetails) ProcessEMVSRED(ProcessEMVSREDRequestDto dto) { (ProcessEMVSREDResponseDto Response, RawSoapDetails SoapDetails)result = (default, default);