{{-- ICTHospital - payment gateway credentials. Secrets are never rendered back. Each one shows as set or not set, and leaving a field blank on save keeps whatever is stored. Copyright (c) DEVtrust Part of ICTHospital Licensed under the GNU General Public License v3.0. --}} @extends('layouts.master') @section('style') @stop @section('content') @if (Session::get('success'))
{{ Session::get('success') }}
@endif

Payment gateways

@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
Nothing in this release charges a card. These settings are stored ready for the online payment work that is still to come, so you can put your credentials in now and they will be there when it lands. Invoices and pharmacy sales are recorded as paid by whatever method you type on the payment form.
@if ($gateways->isEmpty())

No gateways configured.

@else @foreach ($gateways as $gateway) @endforeach
Gateway Credentials on file Status Actions
{{ $gateway->name }} @foreach ($secrets as $field) {{ $field }}: {{ $gateway->$field ? 'set' : 'not set' }} @endforeach @if ($gateway->status === 'enabled') Active @else Disabled @endif @if ($gateway->status === 'enabled')
{{ csrf_field() }}
@else
{{ csrf_field() }}
@endif Edit
{{ csrf_field() }}
{{ csrf_field() }}
@foreach ($secrets as $field)
@endforeach
Leave a credential blank to keep the one already stored.
@endif

Add a gateway

{{ csrf_field() }}
@foreach ($secrets as $field)
@endforeach
A new gateway starts disabled. Make it active when you are ready to use it.
@stop @section('script') @stop