How to make my PayPal payment option calculate the number of packs the consumer selects?

  • usawsf2014
    Asked on October 3, 2014 at 11:39 AM

    Hello,

    I have created a form for my consumers to order some holiday greeting cards.

     

    The only thing I can not figure out is how to essentially link the number of packs they chose, which are 1 pack for $15, 2 for $30 or 3 for $45. I would like to make the form automatically input the price amount of the pack they intend on buying into the PayPal payment option if they so choose to pay using PayPal.

     

    Hopefully this is a good description of my problem, I will also add a link to my form to help better understand my issue.

     

    Thanks for all your help!

     

    Blake King

     

     

  • Ben
    Replied on October 3, 2014 at 12:10 PM

    Hi Blake,

    I am sorry, but I am not entirely sure if you want to pass the number of items that would be purchased (judging from the tile) or the amount (which I presume that you want).

    If you would like to pass the selected value (amount) to the PayPal integration you should follow these steps: How to pass a calculation to a payment field

    You have already added a form calculation field so you will need one more for this to work.

    Do let us know if you need further assistance with this and if the suggested option is not what you wanted to achieve and we will be happy to help.

    Best Regards,
    Ben

  • usawsf2014
    Replied on October 3, 2014 at 12:37 PM

    I have added a calculation tool to the form but when I add the field "number of packs" it calculates every number so for instance say I want 1 pack for $15 (12 cards) the calculation shows 11512.

    You are correct though I would like to integrate the amount of the package picked by the consumer to the PayPal amount.

    Sorry I am just confused on how to exactly use the calculation widget for what I am trying to achieve.

     

    Again thanks for all your help! 

  • David JotForm Support
    Replied on October 3, 2014 at 1:24 PM

    Hi,

    You are actually very close.  Currently though, you are only passing the names of the options to your calculation widget, which is performing calculations on those while stripping out the non-numerical data(1 Pack 15$(12 Cards) turns into 11512).  You would need to add the values you would like to have associated with the options in order to get the results you desire:

    How to make my PayPal payment option calculate the number of packs the consumer selects? Image 1 Screenshot 30

    How to make my PayPal payment option calculate the number of packs the consumer selects? Image 2 Screenshot 41

    That was all I changed and your form works like this:

    http://form.jotformpro.com/form/42754998784983

    Let us know if you have any further questions and we will be happy to help.

  • usawsf2014
    Replied on October 3, 2014 at 1:31 PM

    Okay, yes that makes sense now and exactly what I needed! Thank You!

     

    Once again thank you and the rest of the support team for helping me with this problem!

  • David JotForm Support
    Replied on October 3, 2014 at 1:42 PM

    You are very welcome, we are here to help!  Let us know if you have any further questions and we will be happy to assist you.