remove payment_link condition from the show page

This commit is contained in:
olegphenomenon 2022-09-13 14:16:12 +03:00
parent 3ae8993313
commit ec8edd98c2

View file

@ -5,6 +5,9 @@ module EisBilling
def update
payment_status = define_payment_status(params[:payment_state])
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])
create_payment_order(invoice: invoice, everypay_response: params, payment_status: payment_status)