mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-16 08:02:40 +01:00
29 lines
1.2 KiB
PHP
29 lines
1.2 KiB
PHP
|
@extends('portal.ninja2020.layout.payments', ['gateway_title' => ctrans('texts.payment_type_Crypto'), 'card_title' => ctrans('texts.payment_type_Crypto')])
|
||
|
|
||
|
@section('gateway_content')
|
||
|
<div class="alert alert-failure mb-4" hidden id="errors"></div>
|
||
|
|
||
|
@include('portal.ninja2020.gateways.includes.payment_details')
|
||
|
|
||
|
<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>
|
||
|
|
||
|
@include('portal.ninja2020.gateways.includes.pay_now')
|
||
|
@endsection
|
||
|
|
||
|
@push('footer')
|
||
|
<script>
|
||
|
document.getElementById('pay-now').addEventListener('click', function() {
|
||
|
document.getElementById('server-response').submit();
|
||
|
});
|
||
|
</script>
|
||
|
@endpush
|