fix payment js