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.


  • Profile Image

    Stripe: Passing name and first name to Stripe card form

    Asked by gyangting on August 19, 2014 at 11:34 PM

    Hi,

    I've started to test Stripe.

    On this form: https://secure.jotformpro.com/form/42305279063957

    THe user has to enter Name information twice.

    How can I pass the information entered in JotForm fields to the Stripe fields?

     

    Also, how does Stripe gets address and email information for the user ?

     

    Thanks,

    Guy

    name first name card and
  • Profile Image
    JotForm Support

    Answered by EltonCris on August 20, 2014 at 05:32 AM

    Hi,

    Name field is part on the CC fields so it is captured automatically. If your form contains email field, it will be automatically passed to Stripe.

    To pass an address information, simply add an Address field to your form and then add it on the Stripe Configuration Wizard.

    Here's how:

    To view it on your Stripe Dashboard, simply go to Payments tab.

    Emails are automatically added on the customers section.

    Thanks!

  • Profile Image

    Answered by gyangting on August 20, 2014 at 06:02 AM

    Thanks. This is helpful and useful.

    There an issue remaining: how to prefill the Stripe name fields with the the information entered in the address field, before the user submits the form.

    I do not want the user to enter his name twice.

    Any idea?

    Thanks!

  • Profile Image
    JotForm Support

    Answered by EltonCris on August 20, 2014 at 07:38 AM

    Hi,

    I'm sorry but it is not possible to pass value on the group fields specially the built in CC fields. A workaround is to get your form source code and apply custom javascript that would perform such function. If you need help with the custom javascript, let us know here.

    Best Regards!

  • Profile Image

    Answered by gyangting on August 20, 2014 at 11:14 AM

    Hi,

    Please walk me through how to do that with javascript.

    Thanks!

  • Profile Image

    Answered by jedcadorna on August 20, 2014 at 01:05 PM

    I'm sorry but are you referring to this field to pre fill some value?

    If yes we'll try some sample script that will auto fill some values when form is loaded. We'll update you here.

  • Profile Image

    Answered by gyangting on August 20, 2014 at 01:19 PM

    That's right.

    Thanks

  • Profile Image

    Answered by jedcadorna on August 21, 2014 at 01:30 AM

    Hello,

    Sorry for the late reply. You'll have to create a function that will copy the value from your First and Last Name field.

    Here's a sample:

    Element Id's are base on this form https://secure.jotformpro.com/form/42305279063957. Simply add the script before the </body> tag and call oninput='fill()' in your First and Last Name input field.

    You can test the sample form here https://shots.jotform.com/jed/forms/Clone%20of%20Stripe%20Template_(42315170991958)/Clone%20of%20Stripe%20Template.html.

  • Profile Image

    Answered by gyangting on August 21, 2014 at 07:50 AM

    Thanks!

    This is helpful.

    Guy

  • Profile Image

    Answered by kauseway on March 20, 2015 at 11:18 AM

    Does this only work if the form is embeded as source code? Or can it work if embeded as iframe?