@extends('admin.layout') @section('title', 'Paystack Integration') @section('content')

Paystack Integration

@if (session('connection_result'))
{{ session('connection_result') }}
@endif

Paystack API: {{ $checkoutAvailable ? 'Configured' : 'Not configured / invalid' }}

Donation checkout: {{ $checkoutAvailable ? 'Available' : 'Unavailable until a valid Paystack secret key and NGN currency are configured.' }}

Mode
{{ strtoupper($configuration->mode()) }}
Public key
{{ $configuration->maskedPublicKey() }}
Secret key
{{ $configuration->secretKey() ? 'Configured' : 'Not configured' }}
Key modes
{{ $configuration->keyModeMatchesSecret() ? 'Consistent' : 'Mismatch' }}
Currency
{{ strtoupper($configuration->currency()) }}
Checkout methods requested
{{ implode(', ', $configuration->paymentChannels()) ?: 'Invalid or not configured' }}
Webhook endpoint (POST)
{{ $webhookUrl }}
Webhook signature
Verified with HMAC-SHA512 using the Paystack secret key.

Connection test

This performs a read-only Paystack API request. Secret credentials are never displayed.

@csrf

Paystack Dashboard setup

In Paystack, enable the payment methods you want available to donors in your dashboard, register the exact webhook endpoint above, and enable the charge.success event. This integration requests card, bank, USSD, QR, mobile money, and bank transfer channels; Paystack only displays channels enabled and supported for your account.

After setting PAYSTACK_SECRET_KEY in the server’s .env, run php artisan config:clear (and rebuild cached configuration during deployment if used).

@endsection