**MTPhoto**Hi

I am struggling with using the Paypal payment tool on my form.

The purchase fields are all created in the document (imported from Form Central) and clients have options to purchase multiple products, quantity etc across two pages. I need the total of all these purchases to be the total amount paid through Paypal.

- JotForm Support
**EltonCris**Hi,

First, you need to perform calculations by getting the total of all the selected products. To do that, please follow this guide. http://www.jotform.com/help/259-How-to-perform-calculation-in-the-form

After that, pass the total calculation on the Paypal payment field. Here's how: http://www.jotform.com/help/275-How-to-pass-a-calculation-to-a-payment-field

You might also find this useful, you can assign calculation value on radios and check boxes. http://www.jotform.com/help/301-How-to-Assign-Calculation-Value

If you need further assistance, let us know here.

Regards!

**MTPhoto**Hi again. Sorry, I still can't work this out. I have tried to enter two of the payments, but the calculator does not recognize they are two separate calculations. If i do an order for two seperate $40 photo packages, the total should be $80 but it is working it out as as $5600. Obviously i am doing something wrong, i hope you can tell me what. There are many more fields to add after i can work out how to do it.

Here is the link to my form

- JotForm Support
**david**Hi,

The calculation widget treats everything you enter as one large equation. If you would like the two separate equations added together, it would need to be something like this instead:

Or:

(teamprint * quantityrequired) + (goldpackage * quantityrequired)

You can build from there:

(teamprint * quantityrequired) + (goldpackage * quantityrequired) + (nextfield * quantity) +

And so on.

Here is my test form to show you the equation working:

http://form.jotformpro.com/form/51044492972963

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