Remove paypal-specific workaround from OrdersController

The previous commit means this is no longer needed here.
This commit is contained in:
Matt-Yorkley
2021-12-05 22:36:36 +00:00
parent 1b459b2491
commit 7cbdb7c1a2

View File

@@ -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