more
Some checks failed
Build and Publish / BuildAndDeployAmd64 (push) Has been cancelled
Build and Publish / BuildAndDeployArm64 (push) Has been cancelled

This commit is contained in:
matst80
2025-12-04 23:01:29 +01:00
parent 7964e8b849
commit 2be13462c9
3 changed files with 4 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ func HandlePaymentDeclined(g *CheckoutGrain, m *messages.PaymentDeclined) error
payment.CompletedAt = asPointer(time.Now())
payment.Status = "failed"
g.PaymentInProgress--
g.AmountInCentsStarted -= payment.Amount
return nil
}