diff --git a/app/controllers/payment_gateways/paypal_controller.rb b/app/controllers/payment_gateways/paypal_controller.rb index aa8f4d48d0..0841be9673 100644 --- a/app/controllers/payment_gateways/paypal_controller.rb +++ b/app/controllers/payment_gateways/paypal_controller.rb @@ -7,9 +7,10 @@ module PaymentGateways before_action :enable_embedded_shopfront before_action :destroy_orphaned_paypal_payments, only: :confirm - after_action :reset_order_when_complete, only: :confirm before_action :permit_parameters! + after_action :reset_order_when_complete, only: :confirm + def express order = current_order || raise(ActiveRecord::RecordNotFound)