private BasePaymentMethod GetPaymentMethodInfo(Guid userGuid, List <BasePaymentMethod> availablePaymentMethods, CartModel cart) { string paymentMethodName = GetPaymentMethod(userGuid) ?? (availablePaymentMethods.Count() == 1 ? availablePaymentMethods.First().SystemName : null); BasePaymentMethod paymentMethodInfo = _paymentMethodService.GetMethodForCart(paymentMethodName, cart); return(paymentMethodInfo); }