What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
How to create Payment with Square or Paypal with a total from a form and not their integration?Asked by taqueriaelburritoloco on November 17, 2016 at 01:57 AM
I'm trying to make a menu order form for a restaurant using PayPal or Square for payment, the problem is that creating the products with their integration is limited for this kind of form, even using conditional logic is limited, it is possible to create a form, having that form calculate the total, then adding that total to the PayPal or Square integration?, I've been searching in the forum but no luck to this specifically, thank you.
Yes, it is possible.
1. You can create all products by using Radio buttons:
2. Then you assign values to each of the product:
3. Now we add Form calculation widget that we will use to calculate the total price of the products:
4. Now you can use Square or PayPal and set that price is picked up from Form calculation widget (calculation field on image):
That way, you can set your products and conditions as you wish, only what is important is to have Form Calculation field so you can pass the value to Payment field.
If you have any further questions please let us know.
Thank you very much Nik_C, that works perfectly, I'm just having one issue, since the way to get the total amount from the form is with the "Donation" mode in Square, it don't get taxes, so I have to add two more calculations, one for Subtotal and one for Tax on the form, get a total amount (hidden on the form view) and get that amount transfer to the payment integration, all good till there, the problem is that the total amount on the payment integration shows without the "$" symbol and without decimals separator, any ideas?, maybe the "$" is not a big deal, but at least the decimal point separator will work, thank you again.
PS. this is the form, the first two categories are ready.
I have replicated the issue. Decimal separator does not exist on the payment field and this is pretty troubling. I have run some tests on another form of mine. Square field does show the decimals so I need to find what's wrong with your form.
Please allow me some time to figure out the problem. I will be sending another response in a timely manner.
Here is the solution:
1. Select your calculation field and click its wizard:
2. Click "Show advanced options":
3. Disable the option "Use commas for decimal point" option which is enabled by default:
You should do this for all the calculation fields you are using on your form. Please try this and let us know if the issue still persists.
Do contact us again if you need any further assistance.
That did the trick :-), no "$" symbol but is fine since the payment integration shows "USD" under the result, so it is ok, thank you guys