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

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