I would like to send product name to Stripe via custom data field

  • Profile Image
    knechtstrat
    Asked on December 19, 2019 at 07:17 PM

    I would like to send product name to Stripe...I have added the custom field and have mapped it...how do I determine what variables are sent to Stripe?

    https://form.jotform.com/93288405224963



    This is a re-post of a comment on How to Send Custom Data to Stripe Payment

  • Profile Image
    John
    Answered on December 19, 2019 at 07:59 PM

    Hello Ken,

    I assume that you are referring to this form: https://www.jotformpro.com/form/93288405224963. Am I right?

    If so, I can see that you have added a CUSTOM DATA textbox. If what you're trying to achieve is to copy this product's description below to the custom data field:

    15768034732086602.png

    you can use this guide: How-to-Pass-Field-Value-to-Another-Field. So the idea is to copy the above field's value into the CUSTOM DATA field you created. As a result, a product description will also be sent to Stripe Metadata.

    Please try that and let us know how it goes.


  • Profile Image
    knechtstrat
    Answered on December 26, 2019 at 12:46 PM

    I implemented this and see that an order came through but in Stripe the metadata custom value was the dollar amount of the class ($309) and not the description of the class. How can I pull the description over into Stripe?

    https://www.screencast.com/t/w05Lapg1tHu

    https://form.jotform.com/93288417823971




  • Profile Image
    Vanessa_T
    Answered on December 26, 2019 at 01:37 PM

    You are getting $309 because the Custom Data field is set to get the value from the Class Registration field.

    The Class Registration field on the other hand has assigned calculation values.

    1577385277The Easiest Online Form Builde

    If you only have one product and the product name will not change, please set the product name as the default value on the Custom Data field instead.

    1577385416The Easiest Online Form Builde

  • Profile Image
    knechtstrat
    Answered on December 26, 2019 at 03:20 PM

    Thank you! I added the default value on the Custom Value field. Can you check and see if this is done right?

    https://form.jotform.com/93288417823971

    Do I remove the conditional logic to copy the fields value or just leave that as it is?

  • Profile Image
    David
    Answered on December 26, 2019 at 04:16 PM

    Please delete the condition:

    1577394984condition.png

    And only use the default value. Let us know if you need more help.