The Community Forum is not available for new posts or responses; previous posts remain available to review. For comprehensive support options, please visit PayPal.com/HelpCenter
Merchant Technical Support: For technical support and related questions, please visit our Technical Support Help Center or Developer Central
If you want to report illegal content under the EU Digital Services Act, please do so here
this posted and here
<Removed>
using Javascript SDK created sample live 0.01 sales SUCCESS
following the
ID/secret here live
<Removed>
<Removed>
PHP SDK
https://developer.paypal.com/docs/checkout/reference/server-integration/setup-sdk/
Where put this:
$request = new OrdersCreateRequest();
$request->headers["prefer"] = "return=representation";
???
BUT here >>>
<Removed>
GETTING: // WHERE is the error??? I used Live --- are headers the problem or is auth ???
Fatal error: Uncaught PayPalHttp\HttpException: {"error":"invalid_client","error_description":"Client Authentication failed"} in /home/polislatchiaptsv/public_html/main/vendor/paypal/paypalhttp/lib/PayPalHttp/HttpClient.php:215 Stack trace: #0 /home/polislatchiaptsv/public_html/main/vendor/paypal/paypalhttp/lib/PayPalHttp/HttpClient.php(100): PayPalHttp\HttpClient->parseResponse(Object(PayPalHttp\Curl)) #1 /home/polislatchiaptsv/public_html/main/vendor/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/AuthorizationInjector.php(37): PayPalHttp\HttpClient->execute(Object(PayPalCheckoutSdk\Core\AccessTokenRequest)) #2 /home/polislatchiaptsv/public_html/main/vendor/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/AuthorizationInjector.php(29): PayPalCheckoutSdk\Core\AuthorizationInjector->fetchAccessToken() #3 /home/polislatchiaptsv/public_html/main/vendor/paypal/paypalhttp/lib/PayPalHttp/HttpClient.php(64): PayPalCheckoutSdk\Core\AuthorizationInjector->inject(Object(PayPalCheckoutSdk\Orders\OrdersGetRequest)) #4 /ho in /home/polislatchiaptsv/public_html/main/vendor/paypal/paypalhttp/lib/PayPalHttp/HttpClient.php on line 215