Title: stripe API error occured
Last modified: February 18, 2021

---

# stripe API error occured

 *  [saujanyashres](https://wordpress.org/support/users/saujanyashres/)
 * (@saujanyashres)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/stripe-api-error-occured/)
 * My customers are getting this error:
    “Stripe API error occurred. Your card was
   declined”. Even though the API keys are correct. Also, the keys are working fine
   on test mode. Why am I getting this error? Is this a stripe issue or the plugin
   issue? Please help.

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

 *  Plugin Support [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/stripe-api-error-occured/#post-14072253)
 * Hi, just to confirm with you. Is the visitors credit card used on your site a
   valid card?
 * Also do you run a cache plugin in your site?
 * Thank you
 *  Thread Starter [saujanyashres](https://wordpress.org/support/users/saujanyashres/)
 * (@saujanyashres)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/stripe-api-error-occured/#post-14079482)
 * Yes, I run a cache plugin, i.e. WP fastest cache. And yes it is a valid card.
 *  Plugin Support [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/stripe-api-error-occured/#post-14087454)
 * Can you enable debug mode then run a test. Also can you make sure the page with
   the button is not getting cached.
 * Let me know what happens.
 * Thank you
 *  Thread Starter [saujanyashres](https://wordpress.org/support/users/saujanyashres/)
 * (@saujanyashres)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/stripe-api-error-occured/#post-14087840)
 * I deactivated the plugin (WPFastest Cache) and it worked fine. Seems like the
   cache plugin was causing issues.
 * Thanks
 *  Plugin Support [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/stripe-api-error-occured/#post-14087926)
 * I am happy to know your issue is resolved.
 * Enjoy the plugin.
 *  Thread Starter [saujanyashres](https://wordpress.org/support/users/saujanyashres/)
 * (@saujanyashres)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/stripe-api-error-occured/#post-14087980)
 * Hi again, the issue was solved for some days. But it has again reappeared, I 
   have not used any cache plugin whatsoever and still my clients are getting the
   same issue in stripe payment. “Stripe API error occurred. Your card was declined”.
 * can you please give me a concrete solution?
 *  Plugin Support [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/stripe-api-error-occured/#post-14088033)
 * Hi, please check the following forum post.
 * [https://wordpress.org/support/topic/api-error-message-3/#post-13940733](https://wordpress.org/support/topic/api-error-message-3/#post-13940733)
 * Let me know if the above helps you.
 * Thank you
 *  Thread Starter [saujanyashres](https://wordpress.org/support/users/saujanyashres/)
 * (@saujanyashres)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/stripe-api-error-occured/#post-14088081)
 * hi, i checked the forum post. And yes my stripe API setup is all correct. moreover,
   stripe is working fine on test mode.
 *  Plugin Support [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/stripe-api-error-occured/#post-14088167)
 * Thank you for letting me know. I have submitted a message to the developers to
   investigate further your issue.
 * Kind regards
 *  Thread Starter [saujanyashres](https://wordpress.org/support/users/saujanyashres/)
 * (@saujanyashres)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/stripe-api-error-occured/#post-14125533)
 * Hi any update on the issue?
 *  Plugin Author [mra13 / Team Tips and Tricks HQ](https://wordpress.org/support/users/mra13/)
 * (@mra13)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/stripe-api-error-occured/#post-14125823)
 * The plugin is working fine at the moment (I have test it myself just now again).
   So this is an issue specific to this particular site. Some kind of conflict is
   happening somewhere but I am not sure where it can be coming from. Weird conflicts
   like these are hard to figure out.
 * Deactivate all the plugins except this one and empty all cache then do a test.
 * You will most likely need to try a different plugin and hopefully that won’t 
   have the same conflict given you current server environment, caching settings,
   and the plugins being used.

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

The topic ‘stripe API error occured’ is closed to new replies.

 * ![](https://ps.w.org/stripe-payments/assets/icon-128x128.png?rev=2705524)
 * [Accept Stripe Payments](https://wordpress.org/plugins/stripe-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/stripe-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/stripe-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/stripe-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stripe-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stripe-payments/reviews/)

 * 11 replies
 * 3 participants
 * Last reply from: [mra13 / Team Tips and Tricks HQ](https://wordpress.org/support/users/mra13/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/stripe-api-error-occured/#post-14125823)
 * Status: not resolved