@method('PUT') @csrf
{{ __('Payment Gateway') }} {{ $paymentGateway->name }} {{ Str::upper($paymentGateway->code) }}
{{ $paymentGateway->status ? __('Active') : __('Inactive') }}

{{ __('Gateway Profile') }}

{{ __('Visible gateway identity used across admin payment controls.') }}

{{ __('Credential Vault') }}

{{ __('Store API keys and provider switches used by automated payment flows.') }}

@php $visibleCredentialCount = count($paymentGateway->credentials); if ($paymentGateway->code === 'bitnob') { $visibleCredentialCount -= count(array_intersect(array_keys($paymentGateway->credentials), ['client_secret', 'webhook_url'])); } @endphp {{ trans_choice(':count field|:count fields', $visibleCredentialCount, ['count' => $visibleCredentialCount]) }}
@foreach($paymentGateway->credentials as $key => $value) @php if ($paymentGateway->code === 'bitnob' && in_array($key, ['client_secret', 'webhook_url'], true)) { continue; } $bitnobLabels = [ 'client_id' => 'Client ID', 'hmac_key' => 'HMAC Key', 'public_key' => 'Public Key', 'secret_key' => 'Secret Key', 'lightning_key' => 'Lightning Key', 'webhook_secret' => 'Webhook Secret', ]; $label = $paymentGateway->code === 'bitnob' && isset($bitnobLabels[$key]) ? $bitnobLabels[$key] : ucwords(str_replace('_', ' ', $key)); $isBoolean = $value === '0' || $value === '1'; $checked = $value === '1'; @endphp @if($isBoolean)
@else
@endif @endforeach
@if($paymentGateway->ipn)

{{ __('Webhook Endpoint') }}

{{ __('Use this URL in the provider dashboard to receive gateway payment events.') }}

{{ __('IPN') }}
{{ __('Set this webhook in :gateway developer webhooks section.', ['gateway' => ucfirst($paymentGateway->name)]) }}
@endif @php $storedSandboxMode = (string) ($paymentGateway->credentials['sandbox'] ?? '0') === '1'; @endphp

{{ __('Credential Health Check') }}

{{ __('Validate API credentials against the selected provider environment before saving changes.') }}

{{ $storedSandboxMode ? __('Sandbox Stored') : __('Live Stored') }}
status)>