<?php
require_once 'config/database.php';

try {
    $stmt = $pdo->query("SELECT setting_key, setting_value FROM settings WHERE setting_key LIKE 'uddoktapay_%'");
    $results = $stmt->fetchAll();
    
    echo "UddoktaPay Settings:\n";
    echo "====================\n";
    
    if (empty($results)) {
        echo "No UddoktaPay settings found in database.\n";
    } else {
        foreach ($results as $row) {
            echo $row['setting_key'] . " = " . $row['setting_value'] . "\n";
        }
    }
} catch (Exception $e) {
    echo "Error: " . $e->getMessage() . "\n";
}
?>