How to pass custom data to Stripe?

  • pwindsun
    Asked on June 9, 2020 at 8: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
  • Kevin Support Team Lead
    Replied on June 9, 2020 at 8: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 Screenshot 10

    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 Screenshot 21

    15917482142020 06 09 18h15 03 Screenshot 32

    You will find these options on the payment field wizard:

    15917487172020 06 09 18h22 52 Screenshot 43

    I hope this helps. 

  • pwindsun
    Replied on June 10, 2020 at 6: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]
    ...
  • Kevin Support Team Lead
    Replied on June 10, 2020 at 7: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 Screenshot 10

    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 Screenshot 21

    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. 

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