mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
Bind specific invoice when paid via Banklink / EveryPay
Fix styling issues Move redundant logic to shared base
This commit is contained in:
parent
cbbfbae99e
commit
0cf2ff92a3
7 changed files with 50 additions and 14 deletions
|
@ -27,6 +27,8 @@ class Registrar
|
|||
opts = { response: params }
|
||||
@payment = ::PaymentOrders.create_with_type(params[:bank], invoice, opts)
|
||||
if @payment.valid_response_from_intermediary? && @payment.settled_payment?
|
||||
Rails.logger.info("User paid invoice ##{invoice.number} successfully")
|
||||
|
||||
@payment.complete_transaction
|
||||
|
||||
if invoice.paid?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue