コード例 #1
0
        void FillOrderPaymentMode(OrderInfo orderInfo)
        {
            orderInfo.PaymentTypeId = int.Parse(inputPaymentModeId.Value);
            PaymentModeInfo paymentMode = ShoppingProcessor.GetPaymentMode(orderInfo.PaymentTypeId);

            if (paymentMode != null)
            {
                orderInfo.PaymentType       = Globals.HtmlEncode(paymentMode.Name);
                orderInfo.AdjustedPayCharge = orderInfo.PayCharge = ShoppingProcessor.CalcPayCharge(orderInfo.GetTotal(), paymentMode);
            }
        }