use a named argument for offline param

This commit is contained in:
Andy Brett
2020-12-03 13:05:12 -08:00
parent 103366ea97
commit f1d439870e
2 changed files with 2 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ class SubscriptionConfirmJob
return unless order.payment_required?
prepare_for_payment!(order)
order.process_payments!(true)
order.process_payments!(offline: true)
raise if order.errors.any?
end

View File

@@ -499,7 +499,7 @@ module Spree
# which gets rescued and converted to FALSE when
# :allow_checkout_on_gateway_error is set to false
#
def process_payments!(offline = false)
def process_payments!(offline: false)
raise Core::GatewayError, Spree.t(:no_pending_payments) if pending_payments.empty?
pending_payments.each do |payment|