From e506a864bf3373cad40a34cb1f571f9562ba48aa Mon Sep 17 00:00:00 2001 From: schrom01 Date: Thu, 16 Feb 2023 20:48:27 +0100 Subject: [PATCH] donations.php cleanup --- donations/donations.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/donations/donations.php b/donations/donations.php index 2997ab6..c684f8c 100644 --- a/donations/donations.php +++ b/donations/donations.php @@ -4,12 +4,15 @@ require $_SERVER['DOCUMENT_ROOT'] . '/databaseConnection/databaseConnection.php' $conn = getDatabaseConnection(); $sql = "SELECT `value` FROM `dolibarrInformation` WHERE `information` = 'apiKey'"; $result = $conn->query($sql); -$dolibarrAPIKey = mysql_fetch_array($result)["value"]; +//$dolibarrAPIKey = mysql_fetch_array($result)["value"]; +$dolibarrAPIKey = "eM6A2bQP36Q7dhELq02qnD7sY4do5KRa"; $conn = getDatabaseConnection(); $sql = "SELECT `value` FROM `dolibarrInformation` WHERE `information` = 'url'"; $result = $conn->query($sql); -$dolibarrURL = mysql_fetch_array($result)["value"]; +//$dolibarrURL = mysql_fetch_array($result)["value"]; +$dolibarrURL = "https://dolibarr.romanschenk.ch/"; + function createDonation($amount, $dolibarrURL, $dolibarrAPIKey) { $BusinesspartnerID = "220";