mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 19:04:36 -04:00
update UI on checkout page
This commit is contained in:
parent
3de0e6367f
commit
3e5d598d53
@ -4,13 +4,26 @@
|
|||||||
<div class="alert alert-failure mb-4" hidden id="errors"></div>
|
<div class="alert alert-failure mb-4" hidden id="errors"></div>
|
||||||
|
|
||||||
<!-- @include('portal.ninja2020.gateways.includes.payment_details') -->
|
<!-- @include('portal.ninja2020.gateways.includes.payment_details') -->
|
||||||
|
<div class="blockonomics-payment-wrapper">
|
||||||
<div>Invoice #{{$invoice_id}}</div>
|
<div>Invoice #{{$invoice_id}}</div>
|
||||||
<div>To pay, send exactly this BTC amount</div>
|
<div>To pay, send exactly this BTC amount</div>
|
||||||
<input name="btcAmount" value="BTC {{$btc_amount}} ≈ {{$amount}} {{$currency}}" readonly>
|
<input class="full-width-input" name="btcAmount" value="BTC {{$btc_amount}} ≈ {{$amount}} {{$currency}}" readonly>
|
||||||
<div>To this bitcoin address</div>
|
<div>To this bitcoin address</div>
|
||||||
<input name="btcAddress" value="{{$btc_address}}" readonly>
|
<input class="full-width-input" name="btcAddress" value="{{$btc_address}}" readonly>
|
||||||
<div id="countdown"></div>
|
<div id="countdown"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<form action="{{ route('client.payments.response') }}" method="post" id="server-response">
|
||||||
|
@csrf
|
||||||
|
<input type="hidden" name="gateway_response">
|
||||||
|
<input type="hidden" name="company_gateway_id" value="{{ $gateway->getCompanyGatewayId() }}">
|
||||||
|
<input type="hidden" name="payment_method_id" value="{{ $payment_method_id }}">
|
||||||
|
<input type="hidden" name="token">
|
||||||
|
<input type="hidden" name="amount" value="{{ $amount }}">
|
||||||
|
<input type="hidden" name="currency" value="{{ $currency }}">
|
||||||
|
<input type="hidden" name="payment_hash" value="{{ $payment_hash }}">
|
||||||
|
</form>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// Get the end time as a Unix timestamp (seconds)
|
// Get the end time as a Unix timestamp (seconds)
|
||||||
var endTimeUnix = {{ $end_time }};
|
var endTimeUnix = {{ $end_time }};
|
||||||
@ -41,16 +54,21 @@
|
|||||||
var x = setInterval(updateCountdown, 1000);
|
var x = setInterval(updateCountdown, 1000);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<form action="{{ route('client.payments.response') }}" method="post" id="server-response">
|
<style type="text/css">
|
||||||
@csrf
|
.blockonomics-payment-wrapper {
|
||||||
<input type="hidden" name="gateway_response">
|
justify-content: center;
|
||||||
<input type="hidden" name="company_gateway_id" value="{{ $gateway->getCompanyGatewayId() }}">
|
display: flex;
|
||||||
<input type="hidden" name="payment_method_id" value="{{ $payment_method_id }}">
|
flex-direction: column;
|
||||||
<input type="hidden" name="token">
|
align-items: center;
|
||||||
<input type="hidden" name="amount" value="{{ $amount }}">
|
padding: 12px;
|
||||||
<input type="hidden" name="currency" value="{{ $currency }}">
|
}
|
||||||
<input type="hidden" name="payment_hash" value="{{ $payment_hash }}">
|
.full-width-input {
|
||||||
</form>
|
width: 100%;
|
||||||
|
margin: 10px 0;
|
||||||
|
padding: 10px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
<!-- @include('portal.ninja2020.gateways.includes.pay_now') -->
|
<!-- @include('portal.ninja2020.gateways.includes.pay_now') -->
|
||||||
@endsection
|
@endsection
|
||||||
|
Loading…
x
Reference in New Issue
Block a user