all the refactor
This commit is contained in:
@@ -36,7 +36,7 @@ func HandlePaymentCompleted(g *CheckoutGrain, m *messages.PaymentCompleted) erro
|
||||
|
||||
// Update checkout status
|
||||
g.PaymentInProgress--
|
||||
sum := g.CartState.TotalPrice.IncVat
|
||||
sum := g.CartState.TotalPrice.IncVat.Int64()
|
||||
|
||||
for _, payment := range g.SettledPayments() {
|
||||
sum -= payment.Amount
|
||||
|
||||
Reference in New Issue
Block a user