Getting custom Paypal amount from calculated value

  • orymca
    Asked on June 10, 2015 at 5:45 PM

    Hey support,

    In most of my forms I calculate my payment amounts into a hidden field, then tell the Paypal widget to pull the custom amount from that hidden field. Looks like this during Paypal integration:

    Getting custom Paypal amount from calculated value Image 1 Screenshot 30

     

    Here's the problem. The "Get amount from" option doesn't always show up for me, and I can't figure out why. Here's what I see sometimes when I try to do my regular Paypal integration (whether the donation box is checked or not):

    Getting custom Paypal amount from calculated value Image 2 Screenshot 41

     

    Any hints? Thanks in advance!

  • David JotForm Support
    Replied on June 10, 2015 at 6:25 PM

    Hi,

    If there is no calculation field in the form, there will not be a field to get the value from.  The option will not be displayed.

    http://www.jotform.com/help/275-How-to-pass-a-calculation-to-a-payment-field

    Here it is without a calculation widget in the form:

    Getting custom Paypal amount from calculated value Image 1 Screenshot 30

    And here it is with one:

    Getting custom Paypal amount from calculated value Image 2 Screenshot 41

    If you have any further questions, let us know and we will be happy to help.

  • orymca
    Replied on October 6, 2016 at 4:26 PM

    Follow-up question here:

    I now have a form with a calculation field that will not tell my PayPal widget the amount to charge. Here's one of the calculations:

    Getting custom Paypal amount from calculated value Image 1 Screenshot 30

    Here's what I see when I try to link my calculation field to my widget:

    Getting custom Paypal amount from calculated value Image 2 Screenshot 41

    Any tips? Thanks in advance for your help!

  • David JotForm Support
    Replied on October 6, 2016 at 6:15 PM

    The value needs to be captured from a calculation widget:

    https://www.jotform.com/help/259-How-to-Perform-Calculation-in-the-Form

    It is not possible to pass a conditionally updated or calculated value.  An actual calculation widget needs to be used.