fix payment status is not saved.
fix tests.