@extends('layouts.app') @section('title', 'Daraja M-PESA Settings') @section('content')

Daraja M-PESA Settings

Configure STK Push and incoming Buy Goods Till / PayBill confirmations.

Back to M-PESA
@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
@endif
@csrf

Use the environment that matches your Daraja app credentials.

Use the shortcode approved for STK Push, not automatically the Till number.

{{ $settings['consumer_key_saved'] ? 'A key is saved.' : 'No key saved yet.' }}

{{ $settings['consumer_secret_saved'] ? 'A secret is saved.' : 'No secret saved yet.' }}

{{ $settings['passkey_saved'] ? 'Passkey is saved.' : 'No passkey saved yet.' }}

{{ $settings['callback_secret_saved'] ? 'Secret saved.' : 'Required for the callback URL.' }}

{{ $settings['c2b_callback_secret_saved'] ? 'Secret saved.' : 'Required for incoming Till confirmation URLs.' }}

Callback URLs

Save secrets first. Register these public HTTPS URLs with Safaricom. Do not share callback secrets publicly.

Cancel

Credentials are encrypted before storage. Blank secret fields preserve the saved value. Saving settings does not register URLs with Safaricom; register C2B URLs separately and test in Sandbox first.

@endsection