<?php
namespace App\Controllers;

class DeveloperDocs
{
    public function paymentGateways()
    {
        $docFile = realpath(__DIR__ . '/../../docs/payment-gateway-development.md');
        
        if (!file_exists($docFile)) {
            $_SESSION['error'] = 'Documentation file not found';
            header('Location: ?app_route=payment_gateways');
            exit;
        }
        
        $content = file_get_contents($docFile);
        include realpath(__DIR__ . '/../views/developer_docs_payment_gateways.php');
    }
}
