mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 05:26:17 +02:00
implemented method which get invoice number from billins side and updated tests
This commit is contained in:
parent
390d693b13
commit
9f4942e522
8 changed files with 191 additions and 10 deletions
|
@ -25,6 +25,7 @@ class Registrar
|
|||
def send_invoice_data_to_billing_system
|
||||
add_invoice_instance = EisBilling::AddDeposits.new(@invoice)
|
||||
result = add_invoice_instance.send_invoice
|
||||
|
||||
link = JSON.parse(result.body)['everypay_link']
|
||||
|
||||
@invoice.update(payment_link: link)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue