mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-05 02:41:33 +00:00
Move order to completed whether it's current state is payment or confirmation
This commit is contained in:
@@ -56,9 +56,9 @@ class ProcessPaymentIntent
|
||||
attr_reader :order, :payment_intent, :payment
|
||||
|
||||
def process_payment
|
||||
return unless order.process_payments! && order.state == "confirmation"
|
||||
return unless order.process_payments!
|
||||
|
||||
OrderWorkflow.new(order).next
|
||||
OrderWorkflow.new(order).complete
|
||||
end
|
||||
|
||||
def ready_for_capture?
|
||||
|
||||
Reference in New Issue
Block a user