mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +02:00
Provide better context for EveryPay / Banklink payment state alerts
This commit is contained in:
parent
2645654aef
commit
37e7def669
2 changed files with 10 additions and 4 deletions
|
@ -29,14 +29,13 @@ class Registrar
|
|||
@payment_order.complete_transaction
|
||||
|
||||
if @payment_order.invoice.paid?
|
||||
flash[:notice] = t(:pending_applied)
|
||||
flash[:notice] = t('.payment_successful')
|
||||
else
|
||||
# flash[:alert] = t(:something_wrong)
|
||||
flash[:alert] = 'We fucked up'
|
||||
flash[:alert] = t('.successful_payment_backend_error')
|
||||
end
|
||||
else
|
||||
@payment_order.create_failure_report
|
||||
flash[:alert] = t(:something_wrong)
|
||||
flash[:alert] = t('.payment_not_received')
|
||||
end
|
||||
redirect_to registrar_invoice_path(@payment_order.invoice)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue