@php $methodInfo = [ 'cash' => [__('Cash'), __('The rider pays the driver; the platform share is charged to the driver\'s wallet.')], 'wallet' => [__('Wallet'), __('Prepaid balance. Riders top up through an enabled gateway.')], 'card' => [__('Card'), __('Charged automatically after the ride to a card saved with Stripe. Needs Stripe.')], 'online' => [__('Pay online'), __('The rider pays after the ride on the checkout page of any enabled gateway.')], ]; @endphp
@csrf @method('PUT')
@foreach ($methods as $method => $state)
@if ($state['enabled'] && ! $state['available']) @elseif ($state['available']) @endif
@endforeach
@foreach ($limits as $field => $limit) @endforeach
@foreach ($gateways as $name => $gateway)
@foreach ($gateway['fields'] as $field => $definition) @php($inputName = 'gateways['.$name.']['.$field.']') @if (isset($definition['options'])) @elseif ($definition['secret'] ?? false) @else @endif @endforeach

{{ __('Webhook URL') }}

{{ $gateway['webhook_url'] }}

{{ __('Optional: payments are also confirmed when the rider returns to the app.') }}

@endforeach

{{ $demoActive ? __('RIDEX_DEMO_MODE is on, so riders also see a "Demo payment" option that pays without real money. Turn demo mode off in .env before going live.') : __('Off. With RIDEX_DEMO_MODE=true a test gateway appears so payments can be tried without keys.') }}

{{ __('Keys are encrypted with your APP_KEY and never shown again.') }}

{{ __('Save configuration') }}