• Resolved elmonty

    (@elmonty)


    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 8 replies - 1 through 8 (of 8 total)
  • Thread Starter elmonty

    (@elmonty)

    Also, the calculation doesn’t appear to come up with the correct result. Here’s an example:

    radio-1 = 150
    checkbox-2 = 23
    number-1 = 0
    checkbox-3 = 0.035

    The result should be 173 * 1.035 = 179.055. When rounded, it should be 179.06, but the visible calculation shows 179.05.

    Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @elmonty

    I hope you are doing well today.

    Please export your form, upload it to Google Drive, and share a link in your next reply so that we can take a closer look at all fields and calculations.

    Kind Regards,
    Kris

    Thread Starter elmonty

    (@elmonty)

    Thread Starter elmonty

    (@elmonty)

    A user reported that only when they unchecked the “Boat launch key” option, the form was able to submit. Why does this cause an error?

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @elmonty,

    A user reported that only when they unchecked the “Boat launch key” option, the form was able to submit. Why does this cause an error?

    I could replicate the issue in your form irrespective of the above action. I was able to notice that once I delete the PayPal field save the form and then re-add the PayPal field it appears to work fine when tested in my system.

    Could you please check and see whether the above action resolves the issue on your side too?

    Please do make sure to save the form before you add the PayPal field again.

    Looking forward to your response.

    Kind Regards,

    Nithin

    Thread Starter elmonty

    (@elmonty)

    Will removing the PayPal field delete the PayPal data from the existing submissions?

    • This reply was modified 6 months, 3 weeks ago by elmonty.
    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @elmonty

    It won’t, the submissions are saved in the database.

    Removing the field will hide the payment if you check the Forminator > Submission but as soon as you add the field back the data will show as expected.

    I did a new test on my lab site and can confirm it looks fine after removing and adding the field back.
    https://monosnap.com/file/RDMQsSNfmCO0tNPGApns2HtHnbPTB0

    However, a backup is always a good idea.

    Best Regards
    Patrick Freitas

    Plugin Support Laura – WPMU DEV Support

    (@wpmudevsupport3)

    Hi @elmonty,

    We haven’t heard from you in a while, I’ll go and mark this thread as resolved. Note that you can still reply on this topic.

    If you have any additional questions or require further help, please let us know!

    Best regards,
    Laura

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Urgent! Error: Invalid Payment Amount’ is closed to new replies.