will be better to extract that to external method, like application_helper

def money(amount)
  number_to_currency(amount, separator: ",", delimiter: " ", format: "%n %u")
end

and then in view money(payment.amount)