mirror of
https://github.com/internetee/registry.git
synced 2025-08-12 12:39:34 +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)
|
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
|
invoice
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue