We're using Stripe for an ecomm project that we're testing out right now and nothing is hitting Stripe. If we use a bad card number (per Stripe's docs) like 4000000000000002, the order still goes through.

The Stripe account is brand new (hasn't fully been activated yet) and in Test mode and the test secret and publishable keys are in Commerce's settings. I'm not sure what else to check.


I had forgotten stripe.js altogether but now I'm getting "Payment information submitted is invalid." which I think is a Craft/Commerce error. Here's a link to my checkout template code. The wrapper template (extended template) contains this javascript before the closing body tag.

  • Are you sure you're looking in the right stripe account? Also are you using the test api keys from your stripe CP, and not the production keys? Also, are you using stripe.js or checkout.js on the front end? Nov 22, 2016 at 3:31
  • Just tested this on a shop I'm developing right now. That card gives me a "Your card was declined." error. Nov 22, 2016 at 8:48
  • @LukeHolder - yes, correct Stripe account, test API keys from Stripe CP. I may be missing the JS. Have to look again.
    – A Herrera
    Nov 22, 2016 at 21:51
  • Alright, so I was missing stripe.js. Added all that per Stripe docs and now just get "Payment information submitted is invalid" which is a Craft/Commerce error from what I can tell. I've edited my original question to reflect this and added links to code.
    – A Herrera
    Nov 22, 2016 at 23:02
  • Where is your stripeResponseHandler in your JS? So basically your code is hitting Stripe with the card details to get the token. So you have the token, now your JS needs to insert that token back into the form so Commerce on the server side can actually submit the form and do what it needs to do with the token. Nov 22, 2016 at 23:18

1 Answer 1


Issue was not RTFM. :) Basically I didn't include every part of the stripe.js setup

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.