How to Pass a Calculation to a Payment Field

Last Update: May 7, 2017

If you have simple to complex calculations using the form calculation widget on your form, you can now pass the final total from the calculation field to the payment field.

What will you need to make this happen? 

Assuming that you have already performed the calculation in a "Form Calculation" widget, which represents a total that is due to be paid by your form users, follow these steps:

1. Click on the wand icon of your payment field.

2. In the Payment Type drop down, select "User Defined Amount".

3. A message will popup, click on "Yes, Go Ahead":

4. Select your calculation field from the "Get Price From" drop down.

5. Make sure to click on the Save button below.


That's it! Your form with simple to complex calculations can now pass payment totals to secure checkout services from our payment fields. 

Here is a demo form showing how this works:

https://form.jotform.com/60752973459973 



Here's another demo form with a little more complex calculation: https://form.jotformpro.com/41413741780956 

Have you tried it yet? 

Please share your experiences in the comment box below. 


21 Comments...


   
RACRUSWAL (July 15, 2014 at 06:21 AM)

PLease can you do this with Purchase Order too.

View Answer


   
WCSPC (September 13, 2014 at 06:26 AM)

This is wonderful - I need to be able to send a calculated value to the subscription field in the paypal payment wizard or to set the above field to collect in equal payments over time.

We would like to offer an instalment plan. Any chance that this could be possible?

View Answer


   
socialur (December 02, 2014 at 10:34 AM)

Useless. Paypal will limit your account if you accept business payments as Donations...

View Answer


   
TheINSGroup (January 09, 2015 at 12:37 PM)

I am not seeing the option to choose "get amount from". there is only a field for "suggested amount" here is my form. http://www.jotform.com//?formID=50085474793968

View Answer


   
memen (March 11, 2015 at 06:47 AM)

Do you have to pay in paypal?

View Answer


   
KC (June 10, 2015 at 11:28 PM)

Is it possible to add a coupon code to the total? In other words, the calculation will automatically calculate the total, but I want to give some people a coupon code which will then take a set $ amount off the total.

View Answer


   
bevigilant (June 15, 2015 at 09:21 PM)

This is what I received when testing my form...

[PayPal Express Error]
-An error has occurred. Please contact form administrator for assistance.
[Transaction refused because of an invalid argument. See additional error messages for details.]
-You are not signed up to accept payment for digitally delivered goods.

What could be the problem?

View Answer


   
Randy Esguerra (October 30, 2015 at 10:48 AM)

Is it possible to set up the taxes to be applied to an item and charged in the total cost?

View Answer


   
USTAPNW (February 25, 2016 at 02:21 PM)

I was able to calculate one product. Everyone also is required to pay for one other static product. I can't find a way to add this to the payment field.

View Answer


   
Shortkat (March 24, 2016 at 07:56 AM)

I tried to set up a payment form using CickBank as an option. I filled the form in the wizard (account name, item n°, product name, product price, and currency), I clicked next and I've been provided with a link that I put it on the Thank You URL of the product, but when clicking the "Finish" button nothing happens at all!

Is there something I'm missing?

View Answer


   
maccalgary (September 14, 2016 at 11:30 AM)

I am working on this form:
https://form.jotform.com/62558917075264

And when I try to edit the "Get Price From:" field, I only find the "(None) Manual" field and cannot find an option to choose a specific field.

View Answer


   
maccalgary (September 14, 2016 at 11:33 AM)

Never mind. It turned out that I was using a normal text field rather than a calculate field.

Thanks!


   
breadsbybreadshop (October 11, 2016 at 03:05 PM)

When I submit my form, Paypal says "Error Detected. Your shopping cart is empty."

View Answer


   
BackdropCity (November 06, 2016 at 01:33 PM)

I am working on the form below:
https://form.jotform.com/62919055216154

I am also trying to edit the 'Get Price From' field, but it only says 'None(Manual)'. I saw the above comment with the same issue but it has not resolved my problem. I have calculated values in the 'Backdrop Size' field and in the 'Additional Features' field.

View Answer


   
JuzeBacknang (November 30, 2016 at 03:31 PM)

I'm having the same issue that there is no entry in the "Get Price From" field - only "None (Manual)".

How did you solve that?
Maybe I'm just blind.. but I don't get that field there.

View Answer


   
JuzeBacknang (November 30, 2016 at 03:48 PM)

I just made it! ;-)

You need to use a widget "Form Calculation" as the source field


   
brooklinefoodcoop (January 01, 2017 at 11:54 AM)

I hope the actual code works better than the example shown above.It shows the Product 1 box, at $10, checked. However, the Total Price in the USD box is shown as 110. I used the link provided, and the demo had the same flaw. When I also checked the box for Product 2, the Total in USD became 325.

View Answer


   
Ian Barnes (March 05, 2017 at 11:14 PM)

My calculation box is named "Clickto" under "Get Price From", so I have chosen that one and it works.
However...Under my payment widget/properties/advanced, it shows my Field ID as: #input_111_donation (and it can't be changed). I am afraid that Paypal will interpret this as Donations. Any thought??

View Answer


   
Ian Barnes (March 06, 2017 at 07:40 AM)

Why would someone answer this with a link back to this forum question??????

My question was answered back in 2014, as the following:


"Answered by Mike_T on December 02, 2014 at 05:18 PM

The donation option can be unchecked on the PayPal Integration Wizard.

It should forward the amount as a regular payment in this case.

If you need any further assistance, please let us know."


However there is no Paypal Integration Wizard now, as it showed back then.

View Answer


   
rhenry (March 30, 2017 at 01:44 PM)

I am having the problem of only seeing None(Manual) as an option. I only have one other field on the page, a number field that pre-populates from a registration form. I want the pre-populated field to eventually be hidden and automatically fill in the PayPal payment box so the payment amount can't be changed. https://www.jotform.com/build/70874394087165 Help is appreciated!!!

View Answer


   
susane (April 22, 2017 at 12:33 PM)

I want to set up a catering form that will creat an automatic 20% tip charge to the order.From what i see i can creat in jot form but it is just lumped together with the sale price when send to square so the sale price and tip arent seperate identites in my square records.Do you have a fix and if not can i connect you with square to find one?

View Answer


Send Comment