What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
Stripe : You must supply a valid card error appears after submitting the formAsked by ptw on August 05, 2013 at 02:36 PM
We built a form to handle purchasing of map locations on our business listing.
we needed to modify the form to include a "coordinate picker" field with the google maps api. Instead of placing the form on our page as an embed I downloaded the form's source code, modified it and placed it on this page: http://itshappeninghere.com/explorer_premium.php.
the credit card fields are connected with stripe test API keys as far as i can tell, but when I try to make a test purchase using both fake card info (4242424242424242, 123, etc.) or my own card info, I get an "you must supply valid card" error, see attached image.
the form accepts test transactions when i preview it on the form editor on jotform.com so it must be something with the form's source code.
card JotForm source google maps purchase
I tested your direct form using the form URL and it was successuful. My test went through fine. So, the problem here might be on the embedded form. After a bit of troubleshooting, I figured out there's a missing stripe script in your embedded form, probably not included in the downloaded form source code. This fixed the problem after adding it on the test form. Please include the following script under the existing form script in your form.
Add it under, calendar.js script. Here's a guide: