Problem on calling https://api.sandbox.paypal.com/v1/oauth2/token

Vale80
Contributor
Contributor

Hi to all, my problem is that as I try to call https://api.sandbox.paypal.com/v1/oauth2/token i receive a 500 Internal server  error.

 

My code is:

 

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.sandbox.paypal.com/v1/oauth2/token");
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERPWD, $paypalClientID.":".$paypalSecret);
curl_setopt($ch, CURLOPT_POSTFIELDS, "grant_type=client_credentials");
$response = curl_exec($ch);
curl_close($ch);

 

I'm on a SSL server on Aruba.

 

I'm trying anything but nothing....

 

Thanks

 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.