@extends('layouts.admin') @section('title', 'Payment Settings') @section('header', 'Payment Settings') @php $currencySymbol = App\Models\AppSetting::getValue('currency_symbol', '₹'); $enabledPaymentGateways = json_decode($settings['enabled_payment_gateways'] ?? '[]', true); $enabledPaymentGateways = is_array($enabledPaymentGateways) && count($enabledPaymentGateways) ? $enabledPaymentGateways : array_keys($customerGatewayProviders ?? []); @endphp @section('content')
Payment Gateway Settings
@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
There were some problems with your input.
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
When disabled, COD is hidden from the customer app and checkout falls back to online payment or wallet.
@if(!empty($settings['payment_gateway_logo']))
Payment gateway logo
@endif
Shown on customer checkout and order confirmation for the active admin payment gateway.
@foreach($customerGatewayProviders as $gatewayKey => $gatewayLabel) @php $logoKey = 'payment_gateway_logo_' . $gatewayKey; @endphp
@if(!empty($settings[$logoKey]))
{{ $gatewayLabel }} logo
@endif
Logo shown beside {{ $gatewayLabel }} in the customer app.
@endforeach
Used for automatic store and driver payouts.
Used by store and driver apps to adapt payout fields country-wise.
Digits to display after the currency symbol. Allowed range: 2 to 5.
Used by the customer app share button. You can use {id} or {restaurantId}, or leave a base URL and the app will append store details automatically.

@php $stripeSecret = $settings['stripe_secret'] ?? ''; $maskedStripeSecret = !empty($stripeSecret) ? substr($stripeSecret, 0, 3) . str_repeat('*', 8) . substr($stripeSecret, -3) : ''; @endphp
@php $stripeWebhookSecret = $settings['stripe_webhook_secret'] ?? ''; $maskedStripeWebhookSecret = !empty($stripeWebhookSecret) ? substr($stripeWebhookSecret, 0, 3) . str_repeat('*', 8) . substr($stripeWebhookSecret, -3) : ''; @endphp

Required for Razorpay payouts along with Key ID and Secret.


@endsection