@extends('layouts.admin', ['title' => 'Payment Settings', 'pageTitle' => 'Payment Settings', 'active' => 'settings']) @php $activeTab = 'payments'; $intro = 'Configure accepted payment methods, gateway credentials, customer messages, and invoice payment behavior.'; $currencies = ['USD' => 'USD - US Dollar', 'EUR' => 'EUR - Euro', 'GBP' => 'GBP - British Pound', 'PKR' => 'PKR - Pakistani Rupee']; $secretConfigured = fn (string $key) => (bool) data_get($settings, '_secret_configured.'.$key, false); @endphp @section('content')

{{ $intro }}

Save Payment Settings
@if (session('status'))
{{ session('status') }}
@endif
@include('admin.settings.partials.nav', ['activeTab' => $activeTab])
@csrf

Enable tax

Apply default tax settings to new invoices.

Upload payment proof

Customer upload placeholder.

Test Connection Save Stripe Settings
Test Connection Save PayPal Settings
@foreach ($futureGateways as $gateway)
Coming soon

{{ $gateway['name'] }}

{{ $gateway['description'] }}

@endforeach

Encrypted credentials

Stripe, PayPal, bank account, and webhook secrets are encrypted with Laravel Crypt before they are saved.

No API calls yet

Test connection buttons save the form and return a placeholder message until real gateway SDKs are connected.

Secret-safe UI

Configured secrets are never printed back into the page. Blank secret fields keep existing encrypted values.

Cancel Save Payment Settings
@endsection