donations.php

cleanup
This commit is contained in:
schrom01 2023-02-16 21:07:33 +01:00
parent 6aa0eb362d
commit c14dc6978e
1 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
<?php
require $_SERVER['DOCUMENT_ROOT'] . '/databaseConnection/databaseConnection.php';
$conn = getDatabaseConnection();
@ -61,6 +62,7 @@ function validateDonation($donationID, $dolibarrURL, $dolibarrAPIKey) {
return $result;
}
function forwardToDonationPage($amount, $dolibarrURL, $dolibarrAPIKey, $BusinesspartnerID){
echo "Sie werden weitergeleitet. Bitte um einen Moment Geduld...";
$donationID = createDonation($amount, $dolibarrURL, $dolibarrAPIKey, $BusinesspartnerID);
validateDonation($donationID, $dolibarrURL, $dolibarrAPIKey);
$payment_link = $dolibarrURL."public/payment/newpayment.php?source=donation&ref=".($donationID)."&securekey=NSmKzZ73HW1zWO8nAlpdq95mDt77Q32o";