afoysal's avatar

Debug PayPal

I am using this composer require paypal/rest-api-sdk-php. I put below code in .env file.

PAYPAL_MODE=sandbox
PAYPAL_SANDBOX_CLIENT_ID=dummyIDfornow
PAYPAL_SANDBOX_SECRET=dummysecretfornow

I put below code in config/paypal.php file

'sandbox_client_id' => env('PAYPAL_SANDBOX_CLIENT_ID', 'dummyIDfornow'),
 'sandbox_secret' => env('PAYPAL_SANDBOX_SECRET', 'dummysecretfornow'),
    

I am getting below error.

You do not have permissions to make this API call

https://i.stack.imgur.com/yp1tc.png

How to debug this situation ?

0 likes
4 replies
afoysal's avatar

Thanks @automica . Yes, I am using Valid Credentials. I am working in a project where other developers worked. I have to follow them. Thanks.

automica's avatar

@afoysal that error appears to suggest you don't have correct api keys for sandbox.

do any of the other developers working on your project have any issues connecting to the sandbox with those credentials?

1 like

Please or to participate in this conversation.