fix to store the right payment amount in the db