mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 07:26:22 +02:00
added billing handler for new created invoice from transactions
This commit is contained in:
parent
0259dd7fec
commit
998827a01d
1 changed files with 8 additions and 0 deletions
|
@ -109,6 +109,14 @@ class Registrar < ApplicationRecord
|
|||
|
||||
SendEInvoiceJob.set(wait: 1.minute).perform_now(invoice.id, payable: payable)
|
||||
|
||||
add_invoice_instance = EisBilling::AddDeposits.new(invoice)
|
||||
result = add_invoice_instance.send_invoice
|
||||
|
||||
Rails.logger.info "Invoice created from transaction ------->"
|
||||
Rails.logger.info invoice
|
||||
Rails.logger.info result.body
|
||||
Rails.logger.info "-----------------------------------------"
|
||||
|
||||
invoice
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue