Hello. I keep getting the CURL error..."HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)" when trying to update an invoice using the API version 2 (..using CURL PHP). The following is some of the code.. Any help is appreciated. $url = "https://api-m.paypal.com/v2/invoicing/invoices/".$invoiceid; $curl = curl_init($url); curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_PUT, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_HTTPHEADER, array("Content-Type: application/json","Authorization: Bearer ".$access_token)); $data = <<<EX { "detail": { .. curl_setopt($curl, CURLOPT_POSTFIELDS, $data); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); $resp = curl_exec($curl);
... View more