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!"; }