From f0a114955898a3714090ef4c23cd0d25a8c59ea5 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Thu, 16 Feb 2023 20:14:11 +0100 Subject: [PATCH] donations.php cleanup --- donations/donations.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/donations/donations.php b/donations/donations.php index 2df6b83..a77dbb4 100644 --- a/donations/donations.php +++ b/donations/donations.php @@ -1,6 +1,7 @@ 0) { - forwardToDonationPage($amount, $dolibarrURL); + forwardToDonationPage($amount, $dolibarrURL, $dolibarrAPIKey); } else { $amount = (float)($_POST["amount"]); if(is_numeric($amount) && $amount > 0) { - forwardToDonationPage($amount, $dolibarrURL); + forwardToDonationPage($amount, $dolibarrURL, $dolibarrAPIKey); } else { echo "invalid amount!"; }