Magento Paypal Security Error
An ocassional problem that arises when implementing Paypal Pro and Paypal Express into Magento is a security error that occurs during the checkout. While attempting to complete the order this message can be displayed:
“There was an error during communication with Paypal: Security error – Security header is not valid”

There are several reasons why this can happen, from not setting up an API request in your Paypal account to not entering the correct Paypal URL into the admin backend. However, one common cause is simply down to not entering your Paypal API credentials properly – even the slightest difference will cause the whole thing not to work. From Paypal you have to enter your:
- API Username
- API Password
- API Signature
Make sure that they are all copied and pasted perfectly, directly from the Paypal website, without any spaces either side of the code. Do not email or Skype the API credentials across as this can cause problems. Attempt this a couple of times if the error persists. It’s unlikely that there’s a problem with the Magento / Paypal code within your site. You can leave the Proxy Information, Debug Flag and Sandbox Flag left as they are when you set up Paypal Payments Pro.

