mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 14:36:22 +02:00
Merge pull request #2427 from internetee/lhv-connect-does-not-process-payments
added send invoice status during payment order paying
This commit is contained in:
commit
2bc1a55791
5 changed files with 18 additions and 0 deletions
|
@ -47,6 +47,8 @@ class BankTransaction < ApplicationRecord
|
|||
|
||||
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
|
||||
|
|
|
@ -21,6 +21,7 @@ module EisBilling
|
|||
data[:custom_field1] = invoice.description
|
||||
data[:custom_field2] = INITIATOR
|
||||
data[:invoice_number] = invoice.number
|
||||
data[:reference_number] = invoice.reference_no
|
||||
|
||||
data
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue