mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Add before_payment method to checkout controller (fixes issues with spree_paypal_express)
This commit is contained in:
5
app/controllers/spree/checkout_controller_decorator.rb
Normal file
5
app/controllers/spree/checkout_controller_decorator.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
Spree::CheckoutController.class_eval do
|
||||
def before_payment
|
||||
current_order.payments.destroy_all if request.put?
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user