mirror of
https://github.com/internetee/registry.git
synced 2025-08-13 21:19:31 +02:00
remove payment_link condition from the show page
This commit is contained in:
parent
3ae8993313
commit
ec8edd98c2
1 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,9 @@ module EisBilling
|
||||||
def update
|
def update
|
||||||
payment_status = define_payment_status(params[:payment_state])
|
payment_status = define_payment_status(params[:payment_state])
|
||||||
invoice = Invoice.find_by(number: params[:order_reference])
|
invoice = Invoice.find_by(number: params[:order_reference])
|
||||||
|
|
||||||
|
return if invoice.paid?
|
||||||
|
|
||||||
bank = create_bank_transfer(invoice: invoice, sum: params[:standing_amount], paid_at: params[:transaction_time])
|
bank = create_bank_transfer(invoice: invoice, sum: params[:standing_amount], paid_at: params[:transaction_time])
|
||||||
create_payment_order(invoice: invoice, everypay_response: params, payment_status: payment_status)
|
create_payment_order(invoice: invoice, everypay_response: params, payment_status: payment_status)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue