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

try {
    $stmt = $pdo->prepare("UPDATE settings SET setting_value = ? WHERE setting_key = 'uddoktapay_base_url'");
    $stmt->execute(['https://ashof.paymently.io/api']);
    echo "UddoktaPay base URL updated to correct value: https://ashof.paymently.io/api\n";
    echo "This matches the settings shown on https://ashof.paymently.io/admin/settings/api-settings\n";
} catch (Exception $e) {
    echo "Error updating UddoktaPay base URL: " . $e->getMessage() . "\n";
}
?>