mattslone
mattslone

Reputation: 307

PayPal Sandbox - Error 10002: You do not have permission to make this API call

I'm trying to use the PayPal API for express checkout using PHP. I used this guide as a template. When connecting, I receive the error message:

[TIMESTAMP] => 2015%2d07%2d20T15%3a32%3a37Z
[CORRELATIONID] => 3a93310587276
[ACK] => Failure
[VERSION] => 109%2e0
[BUILD] => 17403434
[L_ERRORCODE0] => 10002
[L_SHORTMESSAGE0] => Authentication%2fAuthorization%20Failed
[L_LONGMESSAGE0] => You%20do%20not%20have%20permissions%20to%20make%20this%20API%20call
[L_SEVERITYCODE0] => Error

The error has no correction listed in the errorcode doc: developer.paypal.com/docs/classic/api/errorcodes/

Upon further research into the error, I read here that you must confirm your email on your paypal account, which I have. Since I'm using a sandbox api account, I also attempted to confirm it, however when I try to from the notifications panel under sandbox test accounts, and I copy/paste the confirmation link into my browser, it tells me the confirmation code is invalid, even if I paste it into the input field. But if I log into the sandbox site with the sandbox account whose email I'm trying to confirm, and when I click confirm in the email section on the email which failed to confirm before, it now says it's already confirmed. Still receiving the above error though.

I've made sure to use the sandbox account api credentials when configuring the connection. It's also a business-pro sandbox account, and the endpoint is for sandbox.

Is there anything obvious that I've missed?

Is there anything additional I should post?

Upvotes: 1

Views: 12832

Answers (2)

pp_MSI_Jenn
pp_MSI_Jenn

Reputation: 1599

There are a couple of different reasons that you would get that message. One reason is your credentials are incorrect, make certain there are no spaces in your credentials.

Another reason for that error message could be related to the endpoint you are using. If you are using Sandbox API, make certain you are using the Sandbox Endpoint.

If you are using Live API credentials make certain that you are pointed at the Live Endpoint.

API Error codes PayPal Developer

Express Checkout Endpoints

Another reason, if you are doing a DoDirectPayment Api Call, make certain that the account you are using is setup for PayPal Payments Pro.

Upvotes: 2

João Reis
João Reis

Reputation: 131

You simply dont have acess to the api, they need to give you a token(in this case called Signature) to you acess PayPal API. You probably need to check you email adress, if that doesnt work just register again on the Paypal Developers :)

Upvotes: 0

Related Questions