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()); }
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(); }