Problem on calling https://api.sandbox.paypal.com/v1/oauth2/token
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- We're not currently set up for transactions in India. in PayPal Payments Standard
- Paypal express checkout, payment they error "Sorry, something went wrong. Please try again." in PayPal Payments Standard
- Getting errors when integrating standard checkout with my web site. Probably a beginner problem. in SDKs
- IPN works in sandbox but not live in Sandbox Environment
- Problems with accent characters when calling Paypal API (v2/invoicing/invoices). in REST APIs