more
This commit is contained in:
@@ -36,6 +36,12 @@ func HandlePaymentCompleted(g *CheckoutGrain, m *messages.PaymentCompleted) erro
|
||||
|
||||
// Update checkout status
|
||||
g.PaymentInProgress--
|
||||
sum := g.CartState.TotalPrice.IncVat
|
||||
|
||||
for _, payment := range g.SettledPayments() {
|
||||
sum -= payment.Amount
|
||||
}
|
||||
g.AmountInCentsRemaining = sum
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user