@extends('adminlte::page') @section('title', 'M-Pesa Credentials') @section('content')

M-Pesa API Configuration

@if($mpesaCredentials->isEmpty()) Add M-Pesa Credentials @endif
@if($mpesaCredentials->isNotEmpty()) @foreach($mpesaCredentials as $credential) @endforeach
ID Shortcode Environment Status Created Actions
{{ $credential->id }} {{ $credential->shortcode }} {{ ucfirst($credential->environment) }} {{ $credential->is_active ? 'Active' : 'Inactive' }} {{ $credential->created_at->format('d M Y') }}
@if($mpesaCredentials->count() > 1)
@csrf @method('DELETE')
@endif
@else

No M-Pesa Credentials Configured

You need to configure M-Pesa credentials to enable mobile payments.

Configure M-Pesa Credentials
@endif
@if($mpesaCredentials->isNotEmpty())

M-Pesa Configuration Guide

Important Notes:
  • Get your M-Pesa credentials from the Safaricom Developer Portal
  • Use sandbox environment for testing and production for live payments
  • Only one set of credentials can be active at a time
  • Keep your credentials secure and never share them publicly
Sandbox Credentials (Testing)
  • Consumer Key: Available on developer portal
  • Consumer Secret: Available on developer portal
  • Shortcode: Your test shortcode
  • Passkey: Your test passkey
Production Credentials (Live)
  • Consumer Key: From production app
  • Consumer Secret: From production app
  • Shortcode: Your business shortcode
  • Passkey: Your production passkey
@endif
@stop