diff --git a/app/models/spree/order_decorator.rb b/app/models/spree/order_decorator.rb index 71574359a72..377b72a0f6d 100644 --- a/app/models/spree/order_decorator.rb +++ b/app/models/spree/order_decorator.rb @@ -432,8 +432,8 @@ def update_adjustment!(adjustment) # amount here. def charge_shipping_and_payment_fees! update_totals - return unless payments.any? + return unless pending_payments.any? - payments.first.update_attribute :amount, total + pending_payments.first.update_attribute :amount, total end end