1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 21:52:35 +01:00
invoiceninja/resources/views/portal/ninja2020/gateways/eway/pay.blade.php

63 lines
2.8 KiB
PHP
Raw Normal View History

2021-08-15 16:12:23 +02:00
@extends('portal.ninja2020.layout.payments', ['gateway_title' => ctrans('texts.credit_card'), 'card_title' =>
ctrans('texts.credit_card')])
2021-07-27 06:03:04 +02:00
@section('gateway_head')
2021-08-15 16:12:23 +02:00
<meta name="public-api-key" content="{{ $public_api_key }}">
<meta name="translation-card-name" content="{{ ctrans('texts.cardholder_name') }}">
<meta name="translation-expiry_date" content="{{ ctrans('texts.date') }}">
<meta name="translation-card_number" content="{{ ctrans('texts.card_number') }}">
<meta name="translation-cvv" content="{{ ctrans('texts.cvv') }}">
2021-07-27 06:03:04 +02:00
@endsection
@section('gateway_content')
<form action="{{ route('client.payments.response') }}" method="post" id="server-response">
@csrf
<input type="hidden" name="gateway_response">
<input type="hidden" name="store_card" id="store_card">
<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="1">
<input type="hidden" name="token" id="token" value="">
2021-08-12 13:02:12 +02:00
<input type="hidden" name="securefieldcode" value="">
2021-07-27 06:03:04 +02:00
</form>
<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-08-15 16:12:23 +02:00
@if (count($tokens) > 0)
@foreach ($tokens as $token)
2021-07-27 06:03:04 +02:00
<label class="mr-4">
2021-08-15 16:12:23 +02:00
<input type="radio" data-token="{{ $token->token }}" name="payment-type"
class="form-radio cursor-pointer toggle-payment-with-token" />
<span class="ml-1 cursor-pointer">**** {{ $token->meta?->last4 }}</span>
2021-07-27 06:03:04 +02:00
</label>
@endforeach
@endisset
<label>
2021-08-15 16:12:23 +02:00
<input type="radio" id="toggle-payment-with-credit-card" class="form-radio cursor-pointer" name="payment-type"
checked />
2021-07-27 06:03:04 +02:00
<span class="ml-1 cursor-pointer">{{ __('texts.new_card') }}</span>
</label>
@endcomponent
2021-08-15 16:12:23 +02:00
@component('portal.ninja2020.components.general.card-element-single')
<div id="eway-secure-panel"></div>
@endcomponent
2021-07-27 06:03:04 +02:00
2021-08-15 16:12:23 +02:00
@include('portal.ninja2020.gateways.includes.save_card')
2021-07-27 06:03:04 +02:00
2021-08-15 16:12:23 +02:00
@include('portal.ninja2020.gateways.includes.pay_now', ['disabled' => true])
2021-07-27 06:03:04 +02:00
@endsection
@section('gateway_footer')
2021-08-15 16:12:23 +02:00
<script src="https://secure.ewaypayments.com/scripts/eWAY.min.js" data-init="false"></script>
2023-09-04 16:07:34 +02:00
@vite('resources/js/clients/payments/eway-credit-card.js')
2021-07-27 06:03:04 +02:00
@endsection