How to pass custom data to Stripe?

  • Profile Image
    pwindsun
    Asked on June 09, 2020 at 08:03 PM
    I have one more problem.
    My guest booked already a Vacationvhome before they fill that form. That
    means there is already a booking number pre-filled when the guest get the
    link to this form by email.
    I want that this pooking number get passed over to the payment field as
    well and I should see this later by stripe as a reference when the guest
    paid. I need this booking number as a reference by stripe to get it booked
    to the right group in our booking software.
    How can i get this done ???
    many thanks
    Hermann
  • Profile Image
    Kevin
    Answered on June 09, 2020 at 08:26 PM

    It's possible to pass custom field data to Stripe; however, this feature only support certain fields, in order to pass the "Booking number", you will need to do the following:

    1. First, add a short text entry field to your form where you will capture the current booking number on your form:

    15917483782020-06-09_18h04_49.png

    2. Pass the value from the booking number field to the newly added field, this guide will help you to do so: https://www.jotform.com/help/286-How-to-Pass-Field-Value-to-Another-Field

    3. The last step is to pass this field to the Stripe integration, you can do this by turning on the "Ask billing information to customer" option and selecting the newly added field on the "Custom data field" dropdown:

    15917481922020-06-09_18h14_50.png

    15917482142020-06-09_18h15_03.png

    You will find these options on the payment field wizard:

    15917487172020-06-09_18h22_52.png

    I hope this helps. 

  • Profile Image
    pwindsun
    Answered on June 10, 2020 at 06:28 PM
    Hi Kavin, many thanks it works and it was easy. But there is the next
    problem. The conditional logic is not working any more.
    I want to add (total in $) and Rental Car total and then pass the sum to
    the "Total Charge "
    Nothing is coming up ???? what's wrong. I need to get my total there
    many thanks
    Hermann
    [image: image.png]
    ...
  • Profile Image
    Kevin
    Answered on June 10, 2020 at 07:56 PM

    This happens due to the same reason explained on your original ticket here: https://www.jotform.com/answers/2310229#2310241 

    Conditions cannot insert values to the payment field, instead, you need to use a Form Calculation widget and then pass that field to the payment section. 

    Here are some steps you can follow: 

    1. Disable this condition:

    15918328262020-06-10_17h45_06.png

    2. Add the Form Calculation widget, you will find it under the widgets tab of the add form element section, and include the fields in the sum:

    15918332992020-06-10_17h47_49.png

    This guide will provide you more details about this: https://www.jotform.com/help/259-How-to-Perform-Form-Calculation-Using-a-Widget

    3. The final step is to pass the data from the Form Calculation widget to the payment field, you may refer to this guide for detailed steps: https://www.jotform.com/help/275-How-to-Pass-a-Calculation-to-a-Payment-Field

    If you have any questions, let us know. 

  • Profile Image
    pwindsun
    Answered on June 10, 2020 at 09:28 PM
    Hi Kevin ,
    many thanks. it works . I wish you a great evening .
    ...