mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
use a named argument for offline param
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user