/// <summary> /// Get terminal merchant payment provider data. /// </summary> /// <param name="request">The request.</param> /// <returns>The response.</returns> private GetTerminalMerchantPaymentProviderDataRealtimeResponse GetTerminalMerchantPaymentProviderData(GetTerminalMerchantPaymentProviderDataRealtimeRequest request) { var transactionClient = new TransactionService.TransactionServiceClient(request.RequestContext); string paymentMerchantInformation = string.Empty; if (!this.cacheAccessor.GetMerchantPaymentProviderDataForTerminal(request.HardwareProfileId, out paymentMerchantInformation)) { paymentMerchantInformation = transactionClient.GetMerchantPaymentProviderDataForTerminal(request.HardwareProfileId); this.cacheAccessor.CacheMerchantPaymentProviderDataForTerminal(request.HardwareProfileId, paymentMerchantInformation); } var paymentInformation = new PaymentMerchantInformation(paymentMerchantInformation); var response = new GetTerminalMerchantPaymentProviderDataRealtimeResponse(paymentInformation); return response; }
private static GetTerminalMerchantPaymentProviderDataRealtimeResponse GetTerminalMerchantPaymentProviderData(GetTerminalMerchantPaymentProviderDataRealtimeRequest request) { var paymentMerchantInformation = new PaymentMerchantInformation(TestConnectorProperties); var response = new GetTerminalMerchantPaymentProviderDataRealtimeResponse(paymentMerchantInformation); return(response); }