fix payment funcs