Title: Invalid API Key Error
Last modified: September 1, 2016

---

# Invalid API Key Error

 *  Resolved [astanley612](https://wordpress.org/support/users/astanley612/)
 * (@astanley612)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/invalid-api-key-error/)
 * Hello,
 * I have a reoccurring error on this site [http://womensbizcoop.com/](http://womensbizcoop.com/)
   in which I get the following after I test my Stripe button:
 * Fatal error: Uncaught exception ‘Stripe\Error\Authentication’ with message ‘No
   API key provided. (HINT: set your API key using “Stripe::setApiKey(<API-KEY>)”.
   You can generate API keys from the Stripe web interface. See [https://stripe.com/api](https://stripe.com/api)
   for details, or email [support@stripe.com](https://wordpress.org/support/topic/invalid-api-key-error/support@stripe.com?output_format=md)
   if you have any questions.’
 * This error occurs in both Test and Live mode. However, my Stripe logs show that
   the transaction processed and I get the green check button right before the page
   redirects to the error. I have checked my API keys and there are no preceding
   or trailing spaces. I also have this plugin installed on another site and it 
   works just fine. It uses the same API keys and shortcode. Here is the example:
   [http://odiscrimination.com/](http://odiscrimination.com/)
    I have checked for
   theme, plugin, and widget conflicts and I still get the error regardless.
 * [https://wordpress.org/plugins/stripe/](https://wordpress.org/plugins/stripe/)

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

 *  [Phil Derksen](https://wordpress.org/support/users/pderksen/)
 * (@pderksen)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/invalid-api-key-error/#post-7566654)
 * I’m not sure why it’s not working in Test mode, but in Live mode you’ll need 
   to secure the checkout page with SSL (https) according to Stripe’s requirements.
   Please read more here:
 * [https://wpsimplepay.com/docs/getting-started/system-requirements/](https://wpsimplepay.com/docs/getting-started/system-requirements/)
 * Also, if you’re meeting all these system requirements, I’m not sure what else
   you need to do. You could try emailing [support@stripe.com](https://wordpress.org/support/topic/invalid-api-key-error/support@stripe.com?output_format=md)
   as well.
 *  [Phil Derksen](https://wordpress.org/support/users/pderksen/)
 * (@pderksen)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/invalid-api-key-error/#post-7566704)
 * Marking resolved since we haven’t heard back in a while. Please open a new ticket
   if anything else comes up. Thanks.

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

The topic ‘Invalid API Key Error’ is closed to new replies.

 * ![](https://ps.w.org/stripe/assets/icon-256x256.png?rev=2784844)
 * [Stripe Payment Forms by WP Simple Pay - Accept Credit Card Payments + Subscriptions with Stripe](https://wordpress.org/plugins/stripe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/stripe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/stripe/)
 * [Active Topics](https://wordpress.org/support/plugin/stripe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stripe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stripe/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [invalid API key.](https://wordpress.org/support/topic-tag/invalid-api-key/)

 * 2 replies
 * 2 participants
 * Last reply from: [Phil Derksen](https://wordpress.org/support/users/pderksen/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/invalid-api-key-error/#post-7566704)
 * Status: resolved