I'm trying to use the Paypal Payouts API for my laravel webshop. While using sandbox everything worked fine but now that I switched to "live" the error {"error":"invalid_client","error_description":"Client Authentication failed"}
appears. During my research on I found out the issue could be that the application is still in sandbox mode. However, I didn't find how to change the mode. Maybe it could also be a different problem.
Here is my code:
$body= json_decode(
'{
"sender_batch_header":
{
"email_subject": "payout"
},
"items": [
{
"recipient_type": "EMAIL",
"receiver": "'.$email.'",
"note": "Your payout",
"sender_item_id": "payout",
"amount":
{
"currency": "'.$currency.'",
"value": "'.$amount.'"
}
}]
}',
true);
$request2 = new PayoutsPostRequest();
$request2->body = $body;
$client = PayPalClient::client();
$response2 = $client->execute($request2);
source https://stackoverflow.com/questions/68963939/paypal-payout-api-client-authentication-failed
Comments
Post a Comment