donations.php

cleanup
This commit is contained in:
schrom01 2023-02-16 20:48:27 +01:00
parent 456afc6a12
commit e506a864bf
1 changed files with 5 additions and 2 deletions

View File

@ -4,12 +4,15 @@ require $_SERVER['DOCUMENT_ROOT'] . '/databaseConnection/databaseConnection.php'
$conn = getDatabaseConnection(); $conn = getDatabaseConnection();
$sql = "SELECT `value` FROM `dolibarrInformation` WHERE `information` = 'apiKey'"; $sql = "SELECT `value` FROM `dolibarrInformation` WHERE `information` = 'apiKey'";
$result = $conn->query($sql); $result = $conn->query($sql);
$dolibarrAPIKey = mysql_fetch_array($result)["value"]; //$dolibarrAPIKey = mysql_fetch_array($result)["value"];
$dolibarrAPIKey = "eM6A2bQP36Q7dhELq02qnD7sY4do5KRa";
$conn = getDatabaseConnection(); $conn = getDatabaseConnection();
$sql = "SELECT `value` FROM `dolibarrInformation` WHERE `information` = 'url'"; $sql = "SELECT `value` FROM `dolibarrInformation` WHERE `information` = 'url'";
$result = $conn->query($sql); $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) { function createDonation($amount, $dolibarrURL, $dolibarrAPIKey) {
$BusinesspartnerID = "220"; $BusinesspartnerID = "220";