@extends('admin.layout') @section('title', 'Payment Gateway') @section('content') @php $activeDompetX = $dompetXProfiles[$activeDompetXProfile] ?? $dompetXProfiles['basic']; $activeDompetXCheck = $activeDompetX['last_check'] ?? null; $selectedDompetXProfile = old('dompetx_active_profile', $activeDompetXProfile); $dompetXHasError = $errors->has('dompetx_active_profile') || $errors->has('dompetx_basic_api_key') || $errors->has('dompetx_custom_api_key'); $pakasirHasError = $errors->has('pakasir_project_slug') || $errors->has('pakasir_api_key'); $initialSection = $dompetXHasError ? 'dompetx' : ($pakasirHasError ? 'pakasir' : 'overview'); $initialMerchantTab = $errors->has('dompetx_custom_api_key') ? 'custom' : ($errors->has('dompetx_basic_api_key') ? 'basic' : $selectedDompetXProfile); $pakasirReady = $pakasirApiKeyAvailable && filled($pakasirProjectSlug); @endphp

Payment Gateway

Atur gateway untuk order baru, kredensial merchant, dan kesiapan QRIS tanpa mengubah .env. Order yang sudah dibuat tetap menggunakan gateway asalnya.

@if ($errors->any()) @endif
@csrf

Pilih gateway

Perubahan hanya berlaku untuk checkout berikutnya.

Pakasir

Gateway transisi

Kesiapan
{{ $pakasirReady ? 'Siap digunakan' : 'Perlu konfigurasi' }}
Biaya pembayaran
Pembeli atau Toko

DompetX

QRIS · biaya ditanggung pembeli

Merchant
{{ ucfirst($selectedDompetXProfile) }}
Kesiapan
@if ($activeDompetXCheck['ready'] ?? false) Siap digunakan @elseif ($activeDompetX['api_key_stored'] ?? false) Perlu diuji @else Perlu konfigurasi @endif
@error('active_gateway')

{{ $message }}

@enderror
Simpan perubahan Password admin diperlukan untuk perubahan gateway, merchant, atau kredensial.
@error('current_password')

{{ $message }}

@enderror
@endsection