Added payment totals with JS