• Resolved reelscene

    (@reelscene)


    Hi!

    We use Forminator with the PayPal option and a calculation to process signup options on our website and now we’re finding that PayPal payments are being declined for odd amounts.

    We pass the courseprice value via the URL to a booking page and use a Calculation like this to calculate the PayPal price:
    courseprice becomes Total which is

    ({currency-1}*1.029)+0.3

    If I pass ... &courseprice=1& ... via the URL, everything works fine (the amount charged to PayPal is £1.33. If I pass ... &courseprice=45& ... then everything works up till the payment is processed by PayPal (which shows the correct amount in the PayPal bank verification popup) and then I receive the Error! Invalid payment amount! error.

    I’ve pasted the form here: https://pastebin.com/D4urVjXm

    Any help appreciated!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter reelscene

    (@reelscene)

    Oddly, values of 1 and 30 work, but 45 causes the error…

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @reelscene,

    I could notice the issue when tested. I could notice the calculation have the following formula:

    ({currency-1}*1.029)+0.3

    Any specific reason to use a 3 point decimal ie 1.029?

    When 45 is passed the value seems to be 46.305

    If I change the above formula to 1.03, then it only gets a 2-point decimal:

    ({currency-1}*1.03)+0.3

    I could notice if I change the formula as above then it works fine.

    Could you please check and see whether it works once its updated as above?

    Looking forward to your response.

    Kind Regards,

    Nithin

    Thread Starter reelscene

    (@reelscene)

    Thank you! That’s fixed the problem ??

    elmonty

    (@elmonty)

    I am also getting this error. We have to apply a 3.5% fee so our calculation is:

    ({radio-1}+{checkbox-2}+{number-1})*({checkbox-1}+1)

    radio-1: a selection of a membership fee
    checkbox-2: one or more optional fees
    number-1: an optional donation amount
    checkbox-1: the payment fee of 0.035.

    I have specified in the calculation settings to round the result to 2 digits. Why am I getting this error?

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @elmonty

    I understand that the issue appears to be the same but it doesn’t really mean that the cause of it is the same. It may be but doesn’t have to.

    As per this forum’s guidelines, please start a separate topic of your own and we’ll assist you there

    https://www.ads-software.com/support/forum-user-guide/faq/#i-have-the-same-problem-can-i-just-reply-to-someone-elses-post-with-me-too

    Kind regards,
    Adam

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error! Invalid payment amount! only on some values’ is closed to new replies.