whyamiwearingsocks whyamiwearingsocks - 1 year ago 47
PHP Question

Returning 'java.lang.NullPointerException1' when trying to activate a billing payment with paypal

Hi I'm trying to activate my paypal billing plan with PHP Curl but I keep getting 'java.lang.NullPointerException1' returned

Here's my code

curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER,$header);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch,CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, false);
$resultTwo = curl_exec($ch);

Answer Source

Likely you're seeing a bug in the PayPal Sandbox backend. Please submit it to merchant support and include the full response, including the Debug-Id header.