Paypal API – Security header is not valid (10002)

05Apr10

When integrating the PayPal API you might get the following error returned:

array(9) {
  ["TIMESTAMP"] => string(20) "2010-04-05T09:10:07Z"
  ["CORRELATIONID"] => string(12) "928a82db523e"
  ["ACK"] => string(7) "Failure"
  ["VERSION"] => string(2) "56"
  ["BUILD"] => string(7) "1236498"
  ["L_ERRORCODE0"] => string(5) "10002"
  ["L_SHORTMESSAGE0"] => string(14) "Security error"
  ["L_LONGMESSAGE0"] => string(28) "Security header is not valid"
  ["L_SEVERITYCODE0"] => string(5) "Error"
}

This might have two possible causes:

  1. you are using the wrong credentials (trying to connect to the Sandbox API URL using the Live credentials or vice versa)
  2. you are missing a & character in the NVP string, after the SIGNATURE, PWD or USER keys.
About these ads


12 Responses to “Paypal API – Security header is not valid (10002)”

  1. 1 jay

    in my case, it’s because i called test mode link instead of live link.

    • Very helpful information. Thanks Jay

    • 3 sgr

      @jay: which one is the live link..?

    • 4 lojiSmith

      c n you please help me on sandbox user? i mean i am confused by different users, i thought the user remains the same but if we call on sandbox url this call is considered as test call otherwise its considered live call. you were correct, i used the live credentials on sandbox api
      please help me creating sandbox user, tx

  2. 5 keha76

    Had the same problem, in my case i just misspelled the the sandbox variable though.

  3. Thanks a lot!!! :D :D :D

  4. 8 ravik

    i am not getting! same error

  5. 9 ravik

    any one plz help me

  6. 10 Admin Adm

    @ravik, no one on the internet has the time and patience to help you. that’s not how you succeed as a developer. Read the info, comprehend it and move along. If you can’t figure out, maybe you should try a different job

  7. Outstanding submit. I used to be checking consistently that web site using this program . empowered! Very useful information and facts especially the very last element :) We maintain this kind of data lots. I’d been interested in this unique details for a while. Cheers and also involving good fortune.

  8. In my case i was getting an error because of api signature . When i copied and pasted from paypal i was having a trailing space also but i removed it . That caused my error .


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.

%d bloggers like this: