Add before_payment method to checkout controller (fixes issues with spree_paypal_express)

This commit is contained in:
Rob H
2013-02-20 14:04:10 +11:00
parent 046eb256ff
commit 055c07a466

View File

@@ -0,0 +1,5 @@
Spree::CheckoutController.class_eval do
def before_payment
current_order.payments.destroy_all if request.put?
end
end