passing  attributes for pay an invoice