2021-07-27 23:59:44 +02:00
|
|
|
@extends('portal.ninja2020.layout.payments', ['gateway_title' => ctrans('texts.payment_type_credit_card'), 'card_title'
|
|
|
|
=> ctrans('texts.payment_type_credit_card')])
|
2021-07-21 08:27:02 +02:00
|
|
|
|
|
|
|
@section('gateway_head')
|
2021-07-27 23:59:44 +02:00
|
|
|
<meta name="paytrace-client-key" content="{{ $client_key }}">
|
|
|
|
<meta name="ctrans-cvv" content="{{ ctrans('texts.cvv') }}">
|
|
|
|
<meta name="ctrans-card_number" content="{{ ctrans('texts.card_number') }}">
|
|
|
|
<meta name="ctrans-expires" content="{{ ctrans('texts.expires') }}">
|
2021-07-21 08:27:02 +02:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('gateway_content')
|
|
|
|
<form action="{{ route('client.payments.response') }}" method="post" id="server_response">
|
|
|
|
@csrf
|
|
|
|
<input type="hidden" name="payment_hash" value="{{ $payment_hash }}">
|
|
|
|
<input type="hidden" name="company_gateway_id" value="{{ $gateway->company_gateway->id }}">
|
|
|
|
<input type="hidden" name="payment_method_id" value="1">
|
2021-07-27 23:59:44 +02:00
|
|
|
<input type="hidden" name="token" id="token" />
|
|
|
|
<input type="hidden" name="store_card" id="store_card" />
|
|
|
|
<input type="hidden" name="amount_with_fee" id="amount_with_fee" value="{{ $total['amount_with_fee'] }}" />
|
|
|
|
<input type="txt" id="HPF_Token" name="HPF_Token" hidden>
|
|
|
|
<input type="txt" id="enc_key" name="enc_key" hidden>
|
|
|
|
</form>
|
2021-07-21 08:27:02 +02:00
|
|
|
|
|
|
|
<div class="alert alert-failure mb-4" hidden id="errors"></div>
|
|
|
|
|
|
|
|
@component('portal.ninja2020.components.general.card-element', ['title' => ctrans('texts.payment_type')])
|
|
|
|
{{ ctrans('texts.credit_card') }}
|
|
|
|
@endcomponent
|
|
|
|
|
|
|
|
@include('portal.ninja2020.gateways.includes.payment_details')
|
|
|
|
|
|
|
|
@component('portal.ninja2020.components.general.card-element', ['title' => ctrans('texts.pay_with')])
|
2021-07-27 23:59:44 +02:00
|
|
|
@if (count($tokens) > 0)
|
|
|
|
@foreach ($tokens as $token)
|
2021-07-21 08:27:02 +02:00
|
|
|
<label class="mr-4">
|
2021-07-27 23:59:44 +02:00
|
|
|
<input type="radio" data-token="{{ $token->hashed_id }}" name="payment-type"
|
|
|
|
class="form-radio cursor-pointer toggle-payment-with-token" />
|
2021-07-21 08:27:02 +02:00
|
|
|
<span class="ml-1 cursor-pointer">{{ optional($token->meta)->last4 }}</span>
|
|
|
|
</label>
|
|
|
|
@endforeach
|
|
|
|
@endisset
|
2021-07-27 23:59:44 +02:00
|
|
|
|
2021-07-21 08:27:02 +02:00
|
|
|
<label>
|
2021-07-27 23:59:44 +02:00
|
|
|
<input type="radio" id="toggle-payment-with-credit-card" class="form-radio cursor-pointer" name="payment-type"
|
|
|
|
checked />
|
2021-07-21 08:27:02 +02:00
|
|
|
<span class="ml-1 cursor-pointer">{{ __('texts.new_card') }}</span>
|
|
|
|
</label>
|
|
|
|
@endcomponent
|
|
|
|
|
|
|
|
@include('portal.ninja2020.gateways.includes.save_card')
|
|
|
|
|
2021-07-27 23:59:44 +02:00
|
|
|
@component('portal.ninja2020.components.general.card-element-single')
|
|
|
|
<div class="w-screen items-center" id="paytrace--credit-card-container">
|
|
|
|
<div id="pt_hpf_form"></div>
|
|
|
|
</div>
|
|
|
|
@endcomponent
|
2021-07-21 08:27:02 +02:00
|
|
|
|
2021-07-27 23:59:44 +02:00
|
|
|
@include('portal.ninja2020.gateways.includes.pay_now')
|
2021-07-21 08:27:02 +02:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('gateway_footer')
|
2021-07-27 23:59:44 +02:00
|
|
|
<script src='https://protect.paytrace.com/js/protect.min.js'></script>
|
|
|
|
<script src="{{ asset('js/clients/payments/paytrace-credit-card.js') }}"></script>
|
2021-07-21 08:27:02 +02:00
|
|
|
@endsection
|