Make processing payments also pending payments

This commit is contained in:
Luis Ramos
2020-02-08 13:19:19 +00:00
parent b5038c5745
commit d0a3ab68f3

View File

@@ -118,7 +118,7 @@ Spree::Order.class_eval do
# "Checkout" is the initial state and, for card payments, "pending" is the state after authorization
# These are both valid states to process the payment
def pending_payments
(payments.select(&:pending?) + payments.select(&:checkout?)).uniq
(payments.select(&:pending?) + payments.select(&:processing?) + payments.select(&:checkout?)).uniq
end
def remove_variant(variant)