refactor js
test number input payment if good --> everywhere