mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
add link that takes the user to the invoice on unconfirmed transaction
This commit is contained in:
parent
0762915ecc
commit
9ec5a1c154
@ -161,6 +161,7 @@ class Blockonomics implements MethodInterface
|
|||||||
$data['invoice_number'] = $_invoice->invoice_number;
|
$data['invoice_number'] = $_invoice->invoice_number;
|
||||||
$data['end_time'] = $this->getTenMinutesCountDownEndTime();
|
$data['end_time'] = $this->getTenMinutesCountDownEndTime();
|
||||||
$data['callback_url'] = $this->setCallbackUrl();
|
$data['callback_url'] = $this->setCallbackUrl();
|
||||||
|
$data['invoice_redirect_url'] = "/client/invoices/{$_invoice->invoice_id}";
|
||||||
|
|
||||||
$data['websocket_url'] = 'wss://www.blockonomics.co/payment/' . $btc_address;
|
$data['websocket_url'] = 'wss://www.blockonomics.co/payment/' . $btc_address;
|
||||||
return render('gateways.blockonomics.pay', $data);
|
return render('gateways.blockonomics.pay', $data);
|
||||||
|
@ -5,8 +5,10 @@
|
|||||||
|
|
||||||
<div class="blockonomics-payment-wrapper">
|
<div class="blockonomics-payment-wrapper">
|
||||||
<div class="progress-message">
|
<div class="progress-message">
|
||||||
<!-- TODO: Add way to navigate to invoice -->
|
Your payment txid has been recieved.
|
||||||
Your payment txid has been recieved. The <a>invoice</a href=""> will be marked as paid automatically once the payment is confirmed.
|
<!-- <span id="txid"></span> -->
|
||||||
|
<br/><br/>
|
||||||
|
The <a id="link" href="{{ $invoice_redirect_url }}" target="_blank">invoice</a> will be marked as paid automatically once the payment is confirmed.
|
||||||
</div>
|
</div>
|
||||||
<div class="initial-state">
|
<div class="initial-state">
|
||||||
<div class="invoice-number">Invoice #{{$invoice_number}}</div>
|
<div class="invoice-number">Invoice #{{$invoice_number}}</div>
|
||||||
@ -106,6 +108,7 @@
|
|||||||
// Hide all existing content
|
// Hide all existing content
|
||||||
document.querySelector('.initial-state').style.display = 'none';
|
document.querySelector('.initial-state').style.display = 'none';
|
||||||
document.querySelector('.progress-message').style.display = 'block';
|
document.querySelector('.progress-message').style.display = 'block';
|
||||||
|
document.getElementById('txid').innerText = data.txid || '';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (isPaymentConfirmed) {
|
if (isPaymentConfirmed) {
|
||||||
@ -168,9 +171,14 @@
|
|||||||
}
|
}
|
||||||
.progress-message {
|
.progress-message {
|
||||||
display: none;
|
display: none;
|
||||||
margin: 120px 0;
|
margin: 90px 0;
|
||||||
font-weight: bold;
|
max-width: 400px;
|
||||||
font-size: 18px;
|
font-size: 16px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
#link {
|
||||||
|
color: #007bff;
|
||||||
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user