@extends('layouts.admin') @section('title', setting('school_name', 'ShulePoint') . ' | Configure ' . $method->name) @section('page-title', 'Configure: ' . $method->name . ' (' . $method->code . ')') @section('content')

{{ $method->name }} ({{ $method->code }})

@csrf @method('PUT')
@if($method->logo)
Logo
@endif
@error('logo'){{ $message }}@enderror
@error('name'){{ $message }}@enderror
@error('description'){{ $message }}@enderror
is_active) ? 'checked' : '' }}>
@php $config = $method->config ?? []; @endphp @if ($method->code === 'mpesa')
Paybill / Till display

Daraja API — STK Push credentials

From your Daraja app. Save first, then use Test connection below.

@error('mpesa')
{{ $message }}
@enderror
@endif @if ($method->code === 'bank')
@endif @if ($method->code === 'coop')
Co-op Bank Tuma API — STK Push credentials

From your Tuma merchant account. Save first, then use Test connection below. Endpoint paths are editable in case Tuma revises them.

@error('coop')
{{ $message }}
@enderror
@foreach(['token_path' => 'Token path', 'stk_path' => 'STK path', 'query_path' => 'Query path'] as $key => $label)
@endforeach
@endif @if ($method->code === 'cheque')
@endif @if (in_array($method->code, ['cash', 'card', 'bank', 'mpesa', 'coop']))
@endif
@endsection