Fix payment state checking

This commit is contained in:
Matt-Yorkley
2021-05-16 13:30:18 +01:00
parent 05ed98aa0c
commit 5725535715

View File

@@ -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)