Error! Invalid payment amount!
-
Hi,
My problem is all about paypal payment. I use sandbox mode and everything goes fine till the payment that returns me a “Error! Invalid payment amount!”. It doesn’t matter if I do fixed amount or the variable, it anyways returns the same. I also checked all threads about this issue and none of them helped me.
Thanks in advanceThe page I need help with: [log in to see the link]
-
Hi @sagithereal,
I’m afraid I’m not able to find a form when I check the mentioned page. Possible to share the form export, so that we could test the form on our side and see what might be causing it?
Please check the following doc on how to export a form:
https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-exportYou can share the export file via Google Drive, Dropbox or via any such cloud services in the following reply.
We are looking forward to your response.
Kind Regards,
NithinSure, here is the export: https://drive.google.com/file/d/1nu8LhatftCdKs8hEpOEB7TTplnI4Z58D/view?usp=sharing
Hi @sagithereal
Thank you for the form.
I tested it on my lab site but it worked without any issue.
On PayPal are you testing the Sandbox account: https://monosnap.com/file/OP7GrSuUN6eoKm4pVfn9mM0HoWY0RV
If so, can you double check your PayPal Keys?
https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#payments
Best Regards
Patrick FreitasWell. I checked everything once again. I also created my sandbox and live apps once again and also tested both methods, paypal login and credit card. It still gives me the “Error! Invalid payment amount!”. I also got the confirmation from your testing website about my form where there was info about “Price: 0” and You used fixed value “5”. I don’t really know if it does matter in any way.
In summary, first of all I disconnected paypal at all, created new sandbox accounts and app, then connected it to forminator. Next i created brand new live app and connected it. Next i simply opened up the form and it doesn’t matter what input do i give to it, its still returning me the error.
There is the proof: https://imgur.com/a/AnYmwJxI feel helpless..
update:
after changing paypal from sandbox to live, everything works fine tho. This doesnt change the fact that sandbox doesnt work and i would highly prefer to test it on sandbox instead of real money.Fixed value works perfectly, but variable price from “value” gives me the error. Could you try to check if does it work for you with “price” variable in paypal payment?
-
This reply was modified 3 years, 1 month ago by
sagithereal.
another update:
I created a similar form and tested all the errors that i faced before. Fixed value in the payment works, but problem appears when i try to use value from “calculation” field. The error “Error! Invalid payment amount!” appears only when I use decimal values in “calculation” field. I checked my calculations as well and they are all working properly. The problem is all about the decimal values that paypal field doesnt accept. How can i fix that if its not from my side?Hi @sagithereal
PayPal was having some issues this week, I can see in their status that it is now fixed.
I was able to see the issue on calculation and we escalated this to our Second Line Support team.
Can you also double check your Formula?
There are some instances that the price is negative and I don’t believe it is expected: https://monosnap.com/file/Ck6ej9NZHcW5cnC0IVoFClgRRrlUnt
Best Regards
Patrick Freitascalculations are fine. this site is all about eloboosting so noone will buy a boost backwards anyways. Negative values arent problem now, but the decimals are.
Hi @sagithereal
I checked the form and there’s one more thing to take care of. It shouldn’t matter but I know it was causing some issue in the past, especially in case of complex calculations and/or calculations based on conditionally visible fields.
Specifically, the “Price” field is set to use the 12345678.98 format with two decimals but quite a lot of values used in calculations use 12345678,90 format (“dot” versus “comma”). The problem is that while in some formats the point/dot is used to separate decimal part and in some other comma is used for that, there are also formats that use comma to separate thousands (like 12,500.75 would be twelve thousands five hundred and decimal part of 75).
It shouldn’t be an issue but please make sure that format used throughout the form is consistent and the same (may it be “comma” or “point” – but the same everywhere).
Kind regards,
AdamHi @sagithereal,
Could you please try the following snippet and see whether it helps with resolving the issues noticed in the calculations?
Snippet:
https://gist.github.com/wpmudev-sls/3b3da48ebc54d05ddce09dfda6ff3919You’ll need to add the above code as a mu-plugins. Before implementing the code, you’ll need to edit the code to change the form ID on line 24, ie:
$form_id = 314;
Change the above line, to your form ID. If your form ID is 123, the above line would be:
$form_id = 123;
Once done, on your WordPress dashboard side, please load the following URL:
yoursite-url.com/wp-admin/?formi_fix_value_whitespaces=1
Please make sure to replace yoursite-url.com in the above to your website’s URL.
Once done, you can remove the given snippet from the mu-plugins and then check whether the form works.
Please check this link on how to implement the above code as a mu-plugins:
https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-pluginsPlease do let us know how that goes.
Kind Regards,
NithinHello @sagithereal ,
We haven’t heard from you for several days now, so it looks like you don’t have more questions for us.
Feel free to re-open this ticket if needed.
Kind regards
Kasiawell, after implementing the snippet, the error still appears
I implemented every single fix step by step, even on brand new form that was made just for tests. I also changed the ID of both forms, but sadly the error still appearsIf the price is a whole number (integer) f.e “1,0€”, the payment is processed, but if I add another “0,5€” f.e by using the checkbox, the same error apprears again.
-
This reply was modified 3 years ago by
sagithereal.
-
This reply was modified 3 years ago by
sagithereal.
Hi @sagithereal
Sorry to hear the issue persists.
We pinged our developers to double check this and we will keep you posted.
Best Regards
Patrick FreitasHi @sagithereal
Could you please send me an email to [email protected] using this template:
Subject: “Attn: Patrick Freitas”
Message: https://www.ads-software.com/support/topic/error-invalid-payment-amount-3/
Best Regards
Patrick Freitas -
This reply was modified 3 years, 1 month ago by
- The topic ‘Error! Invalid payment amount!’ is closed to new replies.