Store payment total in database when purchasing tickets (fixes #148).