mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Fix payment state checking
This commit is contained in:
@@ -35,8 +35,7 @@ class ProcessPaymentIntent
|
||||
|
||||
OrderWorkflow.new(order).next
|
||||
|
||||
if last_payment.can_complete?
|
||||
last_payment.complete!
|
||||
if last_payment.completed?
|
||||
last_payment.mark_as_processed
|
||||
|
||||
Result.new(ok: true)
|
||||
|
||||
Reference in New Issue
Block a user