Title: Error: Invalid response
Last modified: August 22, 2016

---

# Error: Invalid response

 *  Resolved [lbelchez](https://wordpress.org/support/users/lbelchez/)
 * (@lbelchez)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-invalid-response/)
 * Hi,
 * I once again need your assistance with a certain problem that i’m having with
   your plugin.
 * my store is not a conventional woocommerce store. my current layout is like this.
 * homepage >>> customer clicks order now >>> customer selects a system >>> the 
   customer is then directed to a product specific checkout page [what i mean by
   this is all of my 3 different products have their own customized checkout page.]
   >>> they enter their details, then check out.
 * My current problem is that whenever I try to checkout with a new test card [not
   saved yet] “4242 4242 4242 4242” or anything else, I get the following:
 * “Error: Invalid Response”
 * Am i getting this because checkout with your plugin is only available on a non-
   modified checkout?
 * I can confirm that the checkout works when i do it on the non-modified one…
 * Please help.. Let me know if you need any more details.. ill provide them asap.
   Thanks in advance.
 * [https://wordpress.org/plugins/stripe-for-woocommerce/](https://wordpress.org/plugins/stripe-for-woocommerce/)

Viewing 15 replies - 1 through 15 (of 25 total)

1 [2](https://wordpress.org/support/topic/error-invalid-response/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-invalid-response/page/2/?output_format=md)

 *  Plugin Author [Stephen Zuniga](https://wordpress.org/support/users/stephenzuniga001/)
 * (@stephenzuniga001)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-invalid-response/#post-5674432)
 * This plugin has had issues before with strange checkouts and that’s probably 
   what’s happening here. I can’t make it work for every possible configuration 
   on my own, so if you could find out how to fix it and let me know, I could add
   it to the main plugin.
 * Thanks,
    Stephen
 *  [jacf182](https://wordpress.org/support/users/jacf182/)
 * (@jacf182)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-invalid-response/#post-5674491)
 * I don’t mean to hijack this thread, but I’m also having the same problem.
 * I was working fine for me, it just stopped working. I’ve tried different test
   cards and all give me the “Invalid response” error. My checkout process is normal.
 *  [jacf182](https://wordpress.org/support/users/jacf182/)
 * (@jacf182)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-invalid-response/#post-5674492)
 * Okay, I managed to solve it.
 * Before I noticed this problem, I was playing around in my Stripe Dashboard settings(
   on Stripe’s website), and I wanted to delete my test data to start over clean.
   So I deleted it by going to my Account Settings > Data> Delete All Test Data 
   and I cleared it. That’s when problems started, but I didn’t know it just then.
 * I deactivated plugins, tried different test cards, etc etc but nothing worked.
   Finally I went to Stripe For Woocommerce plugin settings in WooCommerce>Settings
   >Checkout>Stripe for Woocommerce and I clicked on “Delete all test data” at the
   very bottom of the page. That solved my problem and it’s working perfectly fine
   again.
 * For some reason, deleting test data in Stripe’s dashboard doesn’t communicate
   with this plugin causing some kind of conflict.
 * Hope it helps anyone!
 *  [GameSale](https://wordpress.org/support/users/gamesale/)
 * (@gamesale)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-invalid-response/#post-5674495)
 * I have the same problem. The solution provided by jacf182 don’t work for me.
   
   Anyone who know other ways to fix it? 🙂
 *  Thread Starter [lbelchez](https://wordpress.org/support/users/lbelchez/)
 * (@lbelchez)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-invalid-response/#post-5674496)
 * Hi,
 * I managed to fix my issue by purchasing a third party plugin called Quick Checkout
   from [https://wordimpress.com/plugins/woocommerce-quick-checkout/](https://wordimpress.com/plugins/woocommerce-quick-checkout/)
 * the reason that i was getting an error is that woocommerce checkout does not 
   support a different checkout page other than what is defined under the woocommerce
   settings.
 * I deployed a shortcode from the plugin on a custom page and voila it works.
 * Let me know if this seems unclear to you and ill try explaining a little bit 
   more.
 *  [mdewyer](https://wordpress.org/support/users/mdewyer/)
 * (@mdewyer)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-invalid-response/#post-5674517)
 * Hey guys,
 * I’m running into what seems to be the same issue. We’ve had a handful of real
   customers try to place orders, and every single one is getting an error:
 * S4WC_Gateway payment failed with message: “Invalid response.”
 * I tried clearing out the test data and that didn’t work. What’s the general consensus
   on how to fix this problem? Do we have to purchase yet another plugin for checkout,
   or is there a setting we can change (I’m a PHP developer so I don’t mind getting
   down into the code)?
 * Thanks!
 *  Plugin Author [Stephen Zuniga](https://wordpress.org/support/users/stephenzuniga001/)
 * (@stephenzuniga001)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-invalid-response/#post-5674518)
 * Could you log into the stripe dashboard and find an order that’s causing errors
   and let me know what you see for the body/response? That error should be more
   enlightening than the plugin one since it’s just a generic catch all.
 *  [mdewyer](https://wordpress.org/support/users/mdewyer/)
 * (@mdewyer)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-invalid-response/#post-5674519)
 * Thanks for the reply. Here’s the info on the Stripe end:
 * **Parsed Request POST Body**
    amount: “2350” currency: “usd” capture: “true” 
   expand: “balance_transaction” card: “” description: “Payment for Anchor Stadium
   Tumbler Set (Order: #410)”
 * **Response body**
    error: type: “invalid_request_error” message: “You have passed
   a blank string for ‘card’. You should remove the ‘card’ parameter from your request
   or supply a non-blank value.” param: “card
 *  Plugin Author [Stephen Zuniga](https://wordpress.org/support/users/stephenzuniga001/)
 * (@stephenzuniga001)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-invalid-response/#post-5674520)
 * I’m assuming the problem is in here ([https://github.com/stezu/stripe-for-woocommerce/blob/master/classes/class-s4wc_gateway.php#L761](https://github.com/stezu/stripe-for-woocommerce/blob/master/classes/class-s4wc_gateway.php#L761)).
   Just to make sure:
 * 1. Are these simple products or subscription?
    2. Are the customers logged in?
   3. If yes on 2, are they repeat customers with this plugin?
 * I’m thinking the javascript isn’t creating a token and the php is then sending
   an empty string to stripe for the card parameter. If it’s a logged in customer,
   it’s something different.
 * If it is in fact the javascript not creating the token, then you should probably
   see another item in your Stripe logs going to the token endpoint that failed.
   If there isn’t anything, or it didn’t fail then I’d have to see your site to 
   be able to figure it out.
 *  [mdewyer](https://wordpress.org/support/users/mdewyer/)
 * (@mdewyer)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/error-invalid-response/#post-5674521)
 * To answer your questions:
 * 1. They are simple products.
    2. Some have been logged in, and some have been“
   Guest”. 3. For the logged in ones, it happened on the first time they tried to
   place an order, and subsequent tries.
 * I hope this helps. If you need more information, or need access to the site to
   dig around, just let me know.
 *  [dkpajor](https://wordpress.org/support/users/dkpajor/)
 * (@dkpajor)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/error-invalid-response/#post-5674526)
 * Hi
 * mdewyer check yours javascript console. if You have error this is a problem 🙂
 *  [mdewyer](https://wordpress.org/support/users/mdewyer/)
 * (@mdewyer)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/error-invalid-response/#post-5674528)
 * Used Firebug and Chrome Javascript console, and neither report any JS errors.
   I just tried putting another order though, placed while I was logged in as an
   admin, and still the error, and here’s what is in Stripe for the log:
 * Time: 2015/02/05 19:44:52
    Method: POST URL: /v1/customers Status: 400 IP address:
   18.57.254.14 Version: 2014-12-22 Source: WooCommerce-Stripe
 * **Parsed Request Query Parameters**
    No query parameters
 * **Parsed Request POST Body**
    description: “matt (#3 – [matt@domain.com](https://wordpress.org/support/topic/error-invalid-response/matt@domain.com?output_format=md))
   Matt DeWyer” email: “matt@domain.com” card: “”
 * **Response body**
    error: type: “invalid_request_error” message: “Invalid card
   object: must be a dictionary or string. See API docs at [https://stripe.com/docs.&#8221](https://stripe.com/docs.&#8221);
   param: “card”
 *  Plugin Author [Stephen Zuniga](https://wordpress.org/support/users/stephenzuniga001/)
 * (@stephenzuniga001)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/error-invalid-response/#post-5674529)
 * Does the problem occur with the twentyfourteen theme?
 *  [mdewyer](https://wordpress.org/support/users/mdewyer/)
 * (@mdewyer)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/error-invalid-response/#post-5674531)
 * Switched the site’s theme to twentyfourteen and the payment went through!
 * Is there something specific to the twentyfourteen theme that this plugin needs
   in order to function properly? There are no javascript or PHP errors with the
   theme the site is using, just the response back Stripe is the “invalid response”
   error each time, so I don’t think it’s because the theme itself has any issues.
   I don’t mind messing with the code if I need to!
 *  Plugin Author [Stephen Zuniga](https://wordpress.org/support/users/stephenzuniga001/)
 * (@stephenzuniga001)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/error-invalid-response/#post-5674532)
 * Well, I mention twentyfourteen because it doesn’t modify the woocommerce checkout
   page. Any theme that doesn’t claim woocommerce support should behave properly.
   The problem is that some themes modify the form fields or in some way or another
   mess with the checkout page and the payments almost always fail. If you could
   send me a link to your site so I can see the checkout page I might be able to
   figure it out. Someone had this problem a few months ago and I had to contact
   the theme developers to get it fixed.
 * – Stephen

Viewing 15 replies - 1 through 15 (of 25 total)

1 [2](https://wordpress.org/support/topic/error-invalid-response/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-invalid-response/page/2/?output_format=md)

The topic ‘Error: Invalid response’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/stripe-for-woocommerce.svg)
 * [Stripe for WooCommerce](https://wordpress.org/plugins/stripe-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/stripe-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/stripe-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/stripe-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stripe-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stripe-for-woocommerce/reviews/)

 * 25 replies
 * 8 participants
 * Last reply from: [cesarscout](https://wordpress.org/support/users/cesarscout/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/error-invalid-response/page/2/#post-5674570)
 * Status: resolved