@extends('layout.app') @section('title', 'Pengaturan Pembayaran - Sistem Manajemen ISP') @section('content') @php $availableMethods = [ 'Payment Gateway' => 'Payment Gateway Otomatis (Tripay/Flip) - REKOMENDASI', 'Bank Transfer' => 'Transfer Bank Manual', 'QRIS' => 'QRIS', 'E-Wallet' => 'Dompet Digital' ]; $selectedMethods = old('payment_methods', $settings['payment_methods'] ?? []); // Auto-select Payment Gateway if no selection if (empty($selectedMethods)) { $selectedMethods = ['Payment Gateway']; } @endphp
@if(session('success')) @endif @if(session('error')) @endif
credit_card Metode Pembayaran
@csrf
infoPayment Gateway akan otomatis dipilih sebagai metode default
@foreach($availableMethods as $value => $label)
@endforeach
@error('payment_methods')
{{ $message }}
@enderror
Rp
Pembayaran ≤ nominal ini akan otomatis disetujui. @error('auto_approve_amount')
{{ $message }}
@enderror
@error('payment_reminder_days')
{{ $message }}
@enderror
@error('bank_transfer_info')
{{ $message }}
@enderror
@error('qris_info')
{{ $message }}
@enderror
@error('ewallet_info')
{{ $message }}
@enderror

payments Pengaturan PPN (Pajak Pertambahan Nilai)
info Jika diaktifkan, PPN akan otomatis ditambahkan ke semua tagihan baru
%
info Default: 11% (sesuai ketentuan PPN di Indonesia) @error('ppn_percentage')
{{ $message }}
@enderror
warningCatatan:
  • PPN hanya akan diterapkan pada tagihan baru yang dibuat setelah pengaturan ini disimpan
  • Tagihan yang sudah dibuat sebelumnya tidak akan terpengaruh
  • PPN dihitung dari subtotal (jumlah tagihan + denda) sebelum PPN
  • Pastikan Anda memiliki NPWP dan terdaftar sebagai PKP (Pengusaha Kena Pajak) sebelum mengaktifkan PPN
list Fitur Pengaturan
  • Metode Pembayaran
    Atur kombinasi Bank Transfer, QRIS, E-Wallet & gateway otomatis.
  • Auto Approve & Reminder
    Tetapkan nominal auto-approve, pengingat, dan grace period.
  • Notifikasi Multi Channel
    Aktifkan email & WhatsApp untuk pengingat pembayaran.
  • Gateway Terintegrasi
    Kelola kredensial Tripay dan Flip untuk pembayaran otomatis.
  • Import / Export
    Backup dan restore konfigurasi pembayaran dalam format JSON.
pie_chart Statistik Pembayaran
Total
-
Pending
-
Disetujui
-
Rata-rata (jam)
-
settings Konfigurasi Gateway
@if(isset($gateways) && $gateways->count()) @php $fieldLabels = [ 'tripay' => [ 'api_key' => 'API Key', 'api_secret' => 'Private Key', 'merchant_id' => 'Merchant Code' ], 'flip' => [ 'api_key' => 'Secret Key', 'api_secret' => 'Validation Token', ], ]; $gatewayDescriptions = [ 'tripay' => 'Payment gateway untuk Virtual Account, E-Wallet (GoPay, OVO, DANA, ShopeePay), QRIS, dan Retail (Alfamart/Indomaret)', 'flip' => 'Payment gateway untuk disbursement dan money transfer antar bank', ]; // Filter hanya Tripay dan Flip $allowedGateways = $gateways->whereIn('gateway_type', ['tripay', 'flip', 'manual']); @endphp @if($allowedGateways->count() > 0) @foreach($allowedGateways as $gateway) @php $defaultConfig = config('payment.gateways.' . $gateway->gateway_type, []); $labels = $fieldLabels[$gateway->gateway_type] ?? ['api_key' => 'API Key', 'api_secret' => 'API Secret']; $environment = $gateway->environment ?? (($defaultConfig['is_production'] ?? false) ? 'production' : 'sandbox'); $description = $gatewayDescriptions[$gateway->gateway_type] ?? ''; @endphp
@if($gateway->gateway_type === 'tripay') account_balance_wallet @elseif($gateway->gateway_type === 'flip') swap_horiz @else payments @endif {{ $gateway->name }}
@if($description) {{ $description }} @endif
is_active ? 'checked' : '' }}>
@if($gateway->gateway_type !== 'manual')
Status: {{ $gateway->is_active ? 'Aktif' : 'Nonaktif' }} | Environment: {{ ucfirst($environment) }}
@csrf @foreach($labels as $field => $label) @php $value = $gateway->{$field} ?? ($defaultConfig[$field] ?? ($defaultConfig[$field === 'merchant_id' ? 'merchant_code' : $field] ?? '')); @endphp
key gateway_type === 'tripay' && $field === 'merchant_id' ? 'readonly' : '' }} required> @if($field === 'api_secret') @endif
@error($field)
{{ $message }}
@enderror @if($gateway->gateway_type === 'tripay' && $field === 'merchant_id') info Merchant Code telah ditetapkan: T33603 @elseif($gateway->gateway_type === 'tripay' && $field === 'api_key') Dapatkan API Key di dashboard Tripay → Member Area @elseif($gateway->gateway_type === 'tripay' && $field === 'api_secret') Private Key untuk signature verification webhook @elseif($gateway->gateway_type === 'flip' && $field === 'api_key') Dapatkan Secret Key di dashboard Flip → Developer Settings @endif
@endforeach
Gunakan Sandbox untuk testing, Production untuk transaksi real @error('environment')
{{ $message }}
@enderror
@else
info Pembayaran Manual

Pelanggan upload bukti pembayaran, lalu admin konfirmasi secara manual. Informasi rekening bank dan instruksi pembayaran dapat diatur pada form di sebelah kiri.

@endif
@endforeach @else
warningGateway Belum Tersedia

Tripay dan Flip belum terdaftar dalam sistem. Gunakan form di bawah untuk menambahkan gateway.

@csrf
infoPilih gateway yang ingin ditambahkan
@endif @else
infoTambah Payment Gateway

Pilih gateway pembayaran yang ingin ditambahkan ke sistem.

@csrf
infoPilih gateway yang ingin ditambahkan
@endif
menu_book Panduan Integrasi
account_balance_walletTripay
  1. Daftar di tripay.co.id
  2. Verifikasi akun dan lengkapi data bisnis
  3. Dapatkan API Key dan Private Key di Member Area
  4. Merchant Code sudah ditetapkan: T33603
  5. Set webhook URL ke sistem Anda
  6. Aktifkan metode pembayaran yang diinginkan
swap_horizFlip
  1. Daftar di flip.id
  2. Verifikasi akun dan lengkapi KYB
  3. Dapatkan Secret Key di Developer Settings
  4. Untuk disbursement, isi saldo terlebih dahulu
  5. Set webhook callback URL
  6. Test dengan API sandbox sebelum production
warningPenting: Jangan share API Key/Secret Key ke siapapun. Simpan dengan aman dan jangan commit ke repository public.
@endsection @section('scripts') @endsection