parent
456afc6a12
commit
e506a864bf
|
@ -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";
|
||||||
|
|
Loading…
Reference in New Issue