donations.php

This commit is contained in:
schrom01 2023-02-16 15:02:46 +01:00
parent 987f2138b4
commit 0f5c96cffc
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ function createDonation($amount) {
curl_setopt($ch, CURLOPT_URL, $dolibarrURL); curl_setopt($ch, CURLOPT_URL, $dolibarrURL);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"amount\": ".$amount.", \"date\": 1676545200, \"socid\": ".$BusinesspartnerID.", \"note_public\": ".$pulicNote."}"); curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"amount\": ".$amount.", \"date\": 1676545200, \"socid\": ".$BusinesspartnerID."}");
$headers = array(); $headers = array();
$headers[] = 'Content-Type: application/json'; $headers[] = 'Content-Type: application/json';