Passing totals to PayPal and adding check option

  • buddut
    Asked on September 20, 2019 at 5:37 PM

    I have a calculated field that gives the number of selections for a user. I want to pass that to the PayPal payment (PayPal pro) and have it calculate the total based upon whether they are members or not and how many clases they have chosen. How do I do that?


    I would also like to add an option to pay by check. How do I do that?


  • Mike_G JotForm Support
    Replied on September 20, 2019 at 7:46 PM

    I created a cloned version of your form and set it up based on my understanding of your requirements.

    https://form.jotform.com/92627008464964

    May I suggest that you test the form and confirm if I was able to understand your concern correctly, please?

    On that form, if someone selected "Check" as the payment method, here's what will appear on the submissions page.

    1569021241zt19 09 59 Screenshot 10

    However, if "PayPal" was selected, here's what will show.

    1569021261zt19 12 06 Screenshot 21


    You can find below the explanation of the changes I made to the cloned version to achieve the results above.

    I have used regular form fields to represent the Months, Available Classes (member or non-member), and Payment Method. I have removed the calculation value for the "months" option but added a calculation value for the options in the "Available Classes" field instead.

    1569021897zt19 20 06 Screenshot 32

    After that, I have set up the calculation for the total in a Form Calculation widget

    How-to-Perform-Form-Calculation-Using-a-Widget

    1569022153zt19 28 10 Screenshot 43

    I have used the count() function to count the number of the selected option in the "Months" field, then multiplied it by calculation value of the selected option in the "Available Classes" field. Form-Calculation-Math-Function-Reference

    I have also created a condition in the form that will hide the PayPal Pro payment field or the Pay by Check (Form Calculation widget) based on the selected Payment Method.

    1569022740zt19 37 21 Screenshot 54

    How-to-Show-or-Hide-Fields-Base-on-User-s-Answer

    Lastly, I have set the payment type of the PayPal Pro payment field to User-Defined Amount and set the Form Calculation widget that calculates the total as the Get Price From of the payment field.

    1569023089zt19 41 54 Screenshot 65

    How-to-pass-a-calculation-to-a-payment-field

    I hope this helps. If you have other questions or concerns, please do not hesitate to let us know.

  • buddut
    Replied on September 20, 2019 at 9:07 PM

    This is perfect. Thank you.