From 7cbdb7c1a2ed1a3bc70b83c29f07c05a494330de Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sun, 5 Dec 2021 22:36:36 +0000 Subject: [PATCH] Remove paypal-specific workaround from OrdersController The previous commit means this is no longer needed here. --- app/controllers/checkout_controller.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/controllers/checkout_controller.rb b/app/controllers/checkout_controller.rb index 50d9104368..fab3105adc 100644 --- a/app/controllers/checkout_controller.rb +++ b/app/controllers/checkout_controller.rb @@ -32,11 +32,6 @@ class CheckoutController < ::BaseController def edit return handle_redirect_from_stripe if valid_payment_intent_provided? - - # This is only required because of spree_paypal_express. If we implement - # a version of paypal that uses this controller, and more specifically - # the #action_failed method, then we can remove this call - reset_order_to_cart rescue Spree::Core::GatewayError => e rescue_from_spree_gateway_error(e) end