From d0a3ab68f3402095a2c4deae41606374c683d7c8 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Sat, 8 Feb 2020 13:19:19 +0000 Subject: [PATCH] Make processing payments also pending payments --- app/models/spree/order_decorator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/spree/order_decorator.rb b/app/models/spree/order_decorator.rb index 1cde659f65..0b8311372e 100644 --- a/app/models/spree/order_decorator.rb +++ b/app/models/spree/order_decorator.rb @@ -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)