Thanks for the info, but in that case it seems the SDK need an update for payouts. Had to change the source code of the PHP SDK in order to remove the sync mode param and even then i still got response code 400. Solved it with writing a custom curl request instead of using the SDK. So if anyone else has this issue in the future following the example, instead of executing $payout->createSynchronois($apiContext); use curl example below. $s = curl_init("https://api.sandbox.paypal.com/v1/payments/payouts"); curl_setopt($s, CURLOPT_URL, "https://api.sandbox.paypal.com/v1/payments/payouts"); curl_setopt($s, CURLOPT_HTTPHEADER, array('Content-Type: application/json', 'Authorization: Bearer ' . $apiContext->getCredential()->getAccessToken(array()))); curl_setopt($s,CURLOPT_POST,true); curl_setopt($s, CURLOPT_POSTFIELDS, $payout->toJSON()); $result = curl_exec($s); curl_close($s);
... View more