Skip to content

Commit

Permalink
added send invoice status during payment order paying
Browse files Browse the repository at this point in the history
  • Loading branch information
olegphenomenon committed Aug 30, 2022
1 parent 161c258 commit 3409dc3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/bank_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ def create_internal_payment_record(invoice:, registrar:, channel: nil)

if create_activity(registrar, invoice)
payment_order.paid!
EisBilling::SendInvoiceStatus.send_info(invoice_number: invoice.number,
status: 'paid')
else
payment_order.update(notes: 'Failed to create activity', status: 'failed')
end
Expand Down

0 comments on commit 3409dc3

Please sign in to comment.