fix payment code bug