How to set up PayPal integration to reflect sum of price from multiple form fields?

  • jeffzhen
    Asked on December 1, 2016 at 1:43 AM

    Hi!

     

    I've been trying very hard to find out how I to work out a problem I am facing on the Pay pal integration.

    I am selling some Beef for this coming Christmas, and I want my customers to have a choice of selecting the weight of the beef cuts and the quantity as well. I managed to do this through doing my own conditions. However I don't know how to get Paypal to reflect a total price from various fields dynamically.

     

    I've also tried the Paypal "Sell Product" option, but it seem so limited, and "add options" is limited to just some T-shirt related presets. Can this be customized or am I stuck with it?

     

    Best regards,

    Jeff Zhen

  • Özlem JotForm Developer
    Replied on December 1, 2016 at 3:59 AM

    Hi Jeff,

    I have cloned your form and made some changes on it according to your requests.

    I have removed your "GRAND TOTAL" TextBox field and also conditions associated with it. I added Form Calculation Widget instead. In this way, you don't need to use conditions to calculate total of values in multiple form fields.

     

    You just need to add form fields that you use in your calculation and sum them easily. In my example, I pass the value of Form Calculation Widget to PayPal field; therefore, I hide Form Calculation Widget.

    How to set up PayPal integration to reflect sum of price from multiple form fields? Image 1 Screenshot 60

    How to set up PayPal integration to reflect sum of price from multiple form fields? Image 2 Screenshot 71

     

    After that, I added PayPal Payment Field to my form. Change the name "My Product" as "GRAND TOTAL". 

    How to set up PayPal integration to reflect sum of price from multiple form fields? Image 3 Screenshot 82

    Add your PayPal account details in the PayPal Integration page. Please choose Payment Type Option as User Defined Amount, too. In this way, you can use the total amount in the Form Calculation Widget.

    How to set up PayPal integration to reflect sum of price from multiple form fields? Image 4 Screenshot 93

    Now, Get Price From should be the Form Calculation Widget which you want to transfer the value in the PayPal. When user clicks the submit button, he pays this total amount by PayPal.

    How to set up PayPal integration to reflect sum of price from multiple form fields? Image 5 Screenshot 104

    Please have a look at my demo form: https://www.jotformpro.com/form/63351625012950

    You can clone this form yo your side. Please have a look at the guide about how to clone: How-to-Clone-an-Existing-Form-from-a-URL

    In addition, please have a look at these guide if you need more details:

    How-to-Perform-Calculation-in-the-Form

    How-to-Integrate-Form-with-Paypal

     

    If you need any further assistance, please feel free to let us know.

    Thank you.