Is it possible to make the PayPal amount to be charged dependent on responses to form questions?

  • WSMC
    Asked on August 10, 2019 at 3:12 AM

    Hi,

    Is it possible to make the PayPal amount to be charged dependent on responses to form questions. 

    For example:

    Are you a club member Yes / No

    (if "No" then the cost of membership is added to the PayPal total)

    Do you require insurance? Yes / No

    (if "Yes" then the cost of insurance is added to the PayPal total)

    Thanks

  • jherwin
    Replied on August 10, 2019 at 3:24 AM

    Yes, that is possible. You can use a single choice element for your questions and assign calculation value to each option/answer.

    Guide: How-to-Assign-Calculation-Value

    Then use the form calculation widget to get the values of each field, please check this guide: How-to-Perform-Form-Calculation-Using-a-Widget

    Once you're done with the calculation, you can then pass the total amount to your PayPal payment field.

    Guide: How-to-Pass-a-Calculation-to-a-Payment-Field

    Please check my demo form here: https://form.jotform.com/92211574978971.

    You can also clone it to know how it was done: How-to-Clone-an-Existing-Form-from-a-URL

  • WSMC
    Replied on August 10, 2019 at 3:36 AM

    Thanks for that, I'll look at it later.

    Regards

    Ben

  • WSMC
    Replied on August 10, 2019 at 12:42 PM

    Hi, I'm not getting the "Calculation" option in the Get Price from option, any ideas please?

  • John_Benson
    Replied on August 10, 2019 at 4:19 PM

    Is this the form (https://www.jotform.com/73561910910958) you're working to? 

    You need to use the Form Calculation widget in order to pass it to the payment field. 

    1565467984tamopui Screenshot 10

    In the payment settings, you should choose "User Defined Amount" or "Collect Donations" as the Payment Type. After that, you'll see the "Get Price From" dropdown where you can select the Form Calculation widget.

    1565468318udfnam Screenshot 21

    Hope that helps. Thank you.

  • WSMC
    Replied on August 10, 2019 at 4:30 PM

    That's got it, Many Thanks

  • WSMC
    Replied on August 10, 2019 at 5:18 PM

    Hi, The form will not process the paypal payment, I'm getting the message below

    Any ideas please?

    Thanks


    1565471855PP not working Screenshot 10

  • John_Benson
    Replied on August 10, 2019 at 7:41 PM

    I have created a separate thread for your next question. Please wait for my reply here: https://www.jotform.com/answers/1922801.

    Thank you.