Quantcast
Channel: WordPress.org Forums » [Forminator Forms – Contact Form, Payment Form & Custom Form Builder] Support
Viewing all articles
Browse latest Browse all 1434

Urgent! Error: Invalid Payment Amount

$
0
0

Replies: 1

My users are suddenly getting errors when they submit my form to Paypal. The error is “Invalid Payment Amount.”

There are several fields in the form where users can select a membership type and optional fees. There is a 3rd required field for a payment processing fee of 3.5% (the value of this field is 0.035).

There is a visible calculation field that calculates the total. I guessed, apparently incorrectly, that the error may have been due to the calculated total having more than 2 decimal places, so I changed the calculation to add rounding.

Here is the calculation:
round(({radio-1}+{checkbox-2}+{number-1})*({checkbox-1}+1)*100)/100

The visual calculation is this:
round((Annual Dues (choose one)+Additional Fees+Additional Donation)*(Payment Processing Fee (required)+1)*100)/100

I am seeing many messages here with the same error. This leads me to think there is a bug in Forminator.


Viewing all articles
Browse latest Browse all 1434

Trending Articles