fixed bug with saving payment info to database