From 06274e42db26ed158f87adaae5342cb1d8cd127b Mon Sep 17 00:00:00 2001 From: Erwin Yulianto Date: Wed, 10 Nov 2021 02:15:47 +0700 Subject: [PATCH] redirect after checkout --- .../Core/Controllers/PayPalExpressCheckoutController.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Website/DesktopModules/Hotcakes/Core/Controllers/PayPalExpressCheckoutController.cs b/Website/DesktopModules/Hotcakes/Core/Controllers/PayPalExpressCheckoutController.cs index e77c74f9..37d03f0e 100644 --- a/Website/DesktopModules/Hotcakes/Core/Controllers/PayPalExpressCheckoutController.cs +++ b/Website/DesktopModules/Hotcakes/Core/Controllers/PayPalExpressCheckoutController.cs @@ -49,8 +49,6 @@ public class PayPalExpressCheckoutController : BaseStoreController public ActionResult Index() { var model = IndexSetup(); - if (string.IsNullOrEmpty(model.PayPalToken)) - return Redirect(Url.RouteHccUrl(HccRoute.Cart)); DisplayPaypalExpressMode(model); LoadValuesFromForm(model); @@ -73,8 +71,6 @@ public ActionResult Index() public ActionResult IndexPost() { var model = IndexSetup(); - if (string.IsNullOrEmpty(model.PayPalToken)) - return Redirect(Url.RouteHccUrl(HccRoute.Cart)); DisplayPaypalExpressMode(model); LoadValuesFromForm(model);