payment state depends on totals, therefore totals must be updated before state decision