2020-12-09 15:17:48 +01:00
|
|
|
@extends('portal.ninja2020.layout.payments', ['gateway_title' => $title, 'card_title' => $title])
|
|
|
|
|
|
|
|
@section('gateway_content')
|
2023-03-18 08:13:49 +01:00
|
|
|
<form action="{{ route('client.payments.response') }}" method="post" id="server-response">
|
|
|
|
@csrf
|
|
|
|
<input type="hidden" name="gateway_response">
|
|
|
|
<input type="hidden" name="payment_hash" value="{{ $payment_hash }}">
|
|
|
|
<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">
|
|
|
|
</form>
|
|
|
|
@component('portal.ninja2020.components.general.card-element', ['title' => ctrans('texts.payment_type')])
|
2020-12-09 15:17:48 +01:00
|
|
|
{{ $title }}
|
|
|
|
@endcomponent
|
|
|
|
|
|
|
|
@include('portal.ninja2020.gateways.includes.payment_details')
|
|
|
|
|
|
|
|
@component('portal.ninja2020.components.general.card-element-single')
|
2020-12-10 12:19:13 +01:00
|
|
|
{!! nl2br($instructions) !!}
|
2020-12-09 15:17:48 +01:00
|
|
|
@endcomponent
|
|
|
|
@endsection
|
2023-03-18 08:13:49 +01:00
|
|
|
<script>
|
|
|
|
|
|
|
|
function submitResponse(response){
|
|
|
|
|
|
|
|
console.log("lets go!");
|
|
|
|
|
|
|
|
document.querySelector(
|
|
|
|
'input[name="gateway_response"]'
|
|
|
|
).value = JSON.stringify(response);
|
|
|
|
|
|
|
|
document.getElementById('server-response').submit();
|
|
|
|
console.log("we did not go!!");
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|