simplify hash in payments controller