payment integration fix some errors in saving transaction