@extends('frontend.layouts.user.index') @section('title', __('Merchant API Configuration')) @push('styles') @endpush @section('content') @php $currentMode = $merchant->current_mode ?? \App\Enums\EnvironmentMode::SANDBOX; $merchantCurrencyCodes = $merchant->supportedCurrencies->pluck('code')->implode(', ') ?: ($merchant->currency?->code ?? '-'); $primaryCurrencyCode = $merchant->primaryCurrency()?->code ?? $merchant->currency?->code ?? '-'; $gatewayCount = $paymentMethods->count(); $selectedGatewayCount = count($selectedPaymentMethodIds); $credentialSetLabel = $currentMode->isSandbox() ? __('Test set') : __('Live set'); $productionLockedMessage = __('Production unlocks after admin approval. Sandbox remains active for safe integration testing.'); $environmentMeta = collect(\App\Enums\EnvironmentMode::cases())->mapWithKeys(fn ($env) => [ $env->value => [ 'label' => $env->label(), 'icon' => $env->icon(), 'caption' => $env->isSandbox() ? __('Test calls') : __('Live payments'), 'keyset' => $env->isSandbox() ? __('Test set') : __('Live set'), 'description' => $env->description(), ], ]); @endphp
{{ __('Manage mode, keys, gateways, and launch checks from one focused workspace.') }}
{{ __('Switch mode and use the matching credential set.') }}