mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 15:13:29 +01:00
35 lines
1.1 KiB
PHP
35 lines
1.1 KiB
PHP
@extends('portal.ninja2020.layout.payments', ['gateway_title' => ctrans('texts.credit_card'), 'card_title' => ctrans('texts.credit_card')])
|
|
|
|
@section('gateway_head')
|
|
@endsection
|
|
|
|
@section('gateway_content')
|
|
<form action="{{ $payment_endpoint_url }}" method="post" id="server_response">
|
|
|
|
@if(!Request::isSecure())
|
|
<p class="alert alert-failure">{{ ctrans('texts.https_required') }}</p>
|
|
@endif
|
|
|
|
<div class="alert alert-failure mb-4" hidden id="errors"></div>
|
|
|
|
<!-- This is a generic credit card component utilizing CardJS -->
|
|
@component('portal.ninja2020.components.general.card-element', ['title' => ctrans('texts.method')])
|
|
{{ ctrans('texts.credit_card') }}
|
|
@endcomponent
|
|
|
|
<div class="bg-white px-4 py-5 flex justify-end">
|
|
<button
|
|
type="submit"
|
|
id="{{ $id ?? 'pay-now' }}"
|
|
class="button button-primary bg-primary {{ $class ?? '' }}">
|
|
<span>{{ ctrans('texts.add_payment_method') }}</span>
|
|
</button>
|
|
</div>
|
|
|
|
</form>
|
|
@endsection
|
|
|
|
@section('gateway_footer')
|
|
<!-- Your JS includes go here -->
|
|
@endsection
|