Skip to content

Commit

Permalink
Merge pull request #377 from erw13n/Issues/redirect
Browse files Browse the repository at this point in the history
redirect after checkout
  • Loading branch information
Will Strohl authored Nov 9, 2021
2 parents 4c6796f + 06274e4 commit 983bbdf
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 983bbdf

Please sign in to comment.