Exemplo n.º 1
0
    protected string ConvertPaymentMethod(string paymentMethodName)
    {
        PaymentOption paymentOption = DataAccessContext.PaymentOptionRepository.GetOne(
            StoreContext.Culture, PaymentOption.GetSimpleName(paymentMethodName));
        PaymentMethod paymentMethod = paymentOption.CreatePaymentMethod();

        if (paymentOption.ShownAsCreditCard)
        {
            return("Credit Card");
        }
        else
        {
            return(paymentMethodName);
        }
    }