public bool UseOnePhaseTransaction(PaymentMethodDto paymentMethodDto)
        {
            try
            {
                var  useOnePhaseTransactionValue = ParameterReader.GetParameterByName(paymentMethodDto, UseOnePhaseTransactionParameter).Value;
                bool useOnePhaseTransaction;
                if (bool.TryParse(useOnePhaseTransactionValue, out useOnePhaseTransaction))
                {
                    return(useOnePhaseTransaction);
                }

                _log.Warn("Could not convert parameter value for UseOnePhaseTransaction to a boolean and is therefor handled as false.");
            }
            catch (ArgumentNullException)
            {
                return(false);
            }

            return(false);
        }
        public bool GetLegalAddress(PaymentMethodDto paymentMethodDto)
        {
            try
            {
                var  getLegalAddressValue = ParameterReader.GetParameterByName(paymentMethodDto, GetLegalAddressParameter).Value;
                bool getLegalAddress;
                if (bool.TryParse(getLegalAddressValue, out getLegalAddress))
                {
                    return(getLegalAddress);
                }

                _log.Warn("Could not convert parameter value for GetLegalAddress to a boolean and is therefor handled as false.");
            }
            catch (ArgumentNullException)
            {
                return(false);
            }

            return(false);
        }
        public bool AddShoppingCartXml(PaymentMethodDto paymentMethodDto)
        {
            try
            {
                var  addShoppingCartXmlValue = ParameterReader.GetParameterByName(paymentMethodDto, AddShoppingCartXmlParameter).Value;
                bool addShoppingCartXml;
                if (bool.TryParse(addShoppingCartXmlValue, out addShoppingCartXml))
                {
                    return(addShoppingCartXml);
                }

                _log.Warn("Could not convert parameter value for addShoppingCartXml to a boolean and is therefor handled as false.");
            }
            catch (ArgumentNullException)
            {
                return(false);
            }

            return(false);
        }
 public string GetPaymentMethodCode(PaymentMethodDto paymentMethodDto)
 {
     return(ParameterReader.GetParameterByName(paymentMethodDto, PaymentMethodCodeParameter).Value);
 }