Hello, we switched our production application to a new server and now the PayPal API can't call anymore. When I call $ch = curl_init('https://api.sandbox.paypal.com/v1/oauth2/token');
$result = curl_exec($ch);
var_dump($result); it runs into a timeout. Other URLs like google.com or something works fine, even paypal.com can reached, but not the API subdomain. Edit: I think the API Urls was the problem. I found that the PHP SDK use "https://api.sandbox.paypal.com" but in the API docs is "https://api-m.sandbox.paypal.com". Weird that our old server can reach both API Urls (Ubuntu 16.04) and our new server (Ubuntu 22.04) can only reach the second one.
... View more