Title: security error
Last modified: August 22, 2016

---

# security error

 *  Resolved [SaladGoat](https://wordpress.org/support/users/saladgoat/)
 * (@saladgoat)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/security-error-4/)
 * 10002 – Security error – Security header is not valid
 * Is this because I am in PayPal sandbox? Or am I missing a setting?
 * [https://wordpress.org/plugins/wordpress-ecommerce/](https://wordpress.org/plugins/wordpress-ecommerce/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/security-error-4/#post-5337422)
 * Hi [@saladgoat](https://wordpress.org/support/users/saladgoat/),
 * Thanks for posting on the forum.
 * The 10002 error is either that your Paypal API details are wrong or you have 
   it in Sandbox mode using live API details. Or in Live mode using Sandbox API 
   details.
 * Make sure you are using the correct API keys. check that there are no spaces 
   before or after the API keys.
 * Are you using sandbox mode for paypal? you will have 2 different API keys with
   paypal.
 * You will have 1 for live mode & a different 1 for sandbox (you will have to create
   a sandbox account for a sandbox API key)
 * Please double check the API details & credentials for both paypal.
 * Kind Regards,
    WPMU DEV
 *  Thread Starter [SaladGoat](https://wordpress.org/support/users/saladgoat/)
 * (@saladgoat)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/security-error-4/#post-5337613)
 * Oh. This API stuff is soooo confusing. And I just looked into PayPal’s sandbox
   and that’s even worse. Switched to Live mode and it seems to work.
    Thanks!
 *  [David](https://wordpress.org/support/users/ugotsta/)
 * (@ugotsta)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/security-error-4/#post-5337651)
 * Hi [@saladgoat](https://wordpress.org/support/users/saladgoat/),
 * Really glad that seems to sort it, it’s unfortunately much easier to just use
   live mode, even for testing (usually $1 sales are easy to test). The sandbox 
   can be quite tricky.
 * Really glad that seems to sort it though. Just let us know if there’s any further
   trouble, we’ll gladly see how we can help! 🙂
 * Cheers, David

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘security error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-ecommerce_f7d96b.svg)
 * [MarketPress - WordPress eCommerce](https://wordpress.org/plugins/wordpress-ecommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-ecommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-ecommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-ecommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-ecommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-ecommerce/reviews/)

## Tags

 * [security error](https://wordpress.org/support/topic-tag/security-error/)
 * [Security header](https://wordpress.org/support/topic-tag/security-header/)

 * 3 replies
 * 3 participants
 * Last reply from: [David](https://wordpress.org/support/users/ugotsta/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/security-error-4/#post-5337651)
 * Status: resolved