more
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user