コード例 #1
0
        public ActionResult ConfirmOrder(OrderInfo orderInfo, bool acceptTerms = false, int fallbackConfirmOrderNodeId = 0)
        {
            if (!orderInfo.ConfirmOrder(acceptTerms, fallbackConfirmOrderNodeId))
            {
                return(CurrentUmbracoPage());
            }

            if (orderInfo.PaymentInfo.TransactionMethod == PaymentTransactionMethod.WebClient)
            {
                Response.Write(Encoding.UTF8.GetString(GetBytes(orderInfo.PaymentInfo.Parameters)));
            }
            else
            {
                if (!string.IsNullOrEmpty(orderInfo.RedirectUrl))
                {
                    Response.Redirect(orderInfo.RedirectUrl, true);
                }
            }

            return(CurrentUmbracoPage());
        }
コード例 #2
0
		public ActionResult ConfirmOrder(OrderInfo orderInfo, bool acceptTerms = false, int fallbackConfirmOrderNodeId = 0)
		{
			if (!orderInfo.ConfirmOrder(acceptTerms, fallbackConfirmOrderNodeId))
			{
				return CurrentUmbracoPage();
			}

			if (orderInfo.PaymentInfo.TransactionMethod == PaymentTransactionMethod.WebClient)
			{
				Response.Write(Encoding.UTF8.GetString(GetBytes(orderInfo.PaymentInfo.Parameters)));
				
			}
			else
			{
				if (!string.IsNullOrEmpty(orderInfo.RedirectUrl))
				{
					Response.Redirect(orderInfo.RedirectUrl, true);
				}
			}

			return CurrentUmbracoPage();
		}