private void RedirectToSucceedingPage() { if (_checkOutMode) { string redirectUrl; if (isAnonPayPal) { _cart.BuildSalesOrderDetails(false, false); Customer.Current.ThisCustomerSession["paypalfrom"] = "shoppingcart"; redirectUrl = PayPalExpress.CheckoutURL(_cart); } else if (isAnonGoogleCheckout) { _cart.BuildSalesOrderDetails(false, false); redirectUrl = GoogleCheckout.CreateGoogleCheckout(_cart); } else if (AppLogic.AppConfigBool("Checkout.UseOnePageCheckout")) { redirectUrl = "checkout1.aspx"; } else { redirectUrl = "checkoutshipping.aspx"; } Response.Redirect(redirectUrl); } else { Response.Redirect("account.aspx"); } }
protected void btnGoogleCheckout_Click(object sender, System.Web.UI.ImageClickEventArgs e) { ProcessCart(false); cart.BuildSalesOrderDetails(); if (!ThisCustomer.IsRegistered && !(AppLogic.AppConfigBool("PasswordIsOptionalDuringCheckout") && AppLogic.AppConfigBool("GoogleCheckout.AllowAnonCheckout"))) { Response.Redirect("checkoutanon.aspx?checkout=true&checkouttype=gc"); } else { Response.Redirect(GoogleCheckout.CreateGoogleCheckout(cart)); } }
protected void btnGoogleCheckout_Click(object sender, System.Web.UI.ImageClickEventArgs e) { ProcessCart(false, false, false); if (!ThisCustomer.IsRegistered && !AppLogic.AppConfigBool("PasswordIsOptionalDuringCheckout") && !AppLogic.AppConfigBool("GoogleCheckout.AllowAnonCheckout")) { if (AppLogic.ProductIsMLExpress()) { Response.Redirect("signin.aspx?ReturnUrl='shoppingcart.aspx'"); } else { Response.Redirect("checkoutanon.aspx?checkout=true&checkouttype=gc"); } } else { Response.Redirect(GoogleCheckout.CreateGoogleCheckout(cart)); } }