Title: Error! Invalid payment amount!
Last modified: February 16, 2022

---

# Error! Invalid payment amount!

 *  Resolved [sagithereal](https://wordpress.org/support/users/sagithereal/)
 * (@sagithereal)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-invalid-payment-amount-3/)
 * 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 advance
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-invalid-payment-amount-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 14 replies - 1 through 14 (of 14 total)

 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-invalid-payment-amount-3/#post-15375030)
 * Hi [@sagithereal](https://wordpress.org/support/users/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-export](https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export)
 * You 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,
    Nithin
 *  Thread Starter [sagithereal](https://wordpress.org/support/users/sagithereal/)
 * (@sagithereal)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-invalid-payment-amount-3/#post-15375207)
 * Sure, here is the export: [https://drive.google.com/file/d/1nu8LhatftCdKs8hEpOEB7TTplnI4Z58D/view?usp=sharing](https://drive.google.com/file/d/1nu8LhatftCdKs8hEpOEB7TTplnI4Z58D/view?usp=sharing)
 *  Plugin Support [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * (@wpmudevsupport12)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-invalid-payment-amount-3/#post-15376131)
 * Hi [@sagithereal](https://wordpress.org/support/users/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](https://monosnap.com/file/OP7GrSuUN6eoKm4pVfn9mM0HoWY0RV)
 * If so, can you double check your PayPal Keys?
 * [https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#payments](https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#payments)
 * Best Regards
    Patrick Freitas
 *  Thread Starter [sagithereal](https://wordpress.org/support/users/sagithereal/)
 * (@sagithereal)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-invalid-payment-amount-3/#post-15376488)
 * Well. 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/AnYmwJx](https://imgur.com/a/AnYmwJx)
 * I feel helpless..
 *  Thread Starter [sagithereal](https://wordpress.org/support/users/sagithereal/)
 * (@sagithereal)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-invalid-payment-amount-3/#post-15376586)
 * 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 4 years, 3 months ago by [sagithereal](https://wordpress.org/support/users/sagithereal/).
 *  Thread Starter [sagithereal](https://wordpress.org/support/users/sagithereal/)
 * (@sagithereal)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-invalid-payment-amount-3/#post-15381256)
 * 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?
 *  Plugin Support [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * (@wpmudevsupport12)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-invalid-payment-amount-3/#post-15384415)
 * Hi [@sagithereal](https://wordpress.org/support/users/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](https://monosnap.com/file/Ck6ej9NZHcW5cnC0IVoFClgRRrlUnt)
 * Best Regards
    Patrick Freitas
 *  Thread Starter [sagithereal](https://wordpress.org/support/users/sagithereal/)
 * (@sagithereal)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-invalid-payment-amount-3/#post-15391179)
 * calculations 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.
 *  Plugin Support [Laura – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support8/)
 * (@wpmudev-support8)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-invalid-payment-amount-3/#post-15395902)
 * Hi [@sagithereal](https://wordpress.org/support/users/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,
    Adam
 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-invalid-payment-amount-3/#post-15398992)
 * Hi [@sagithereal](https://wordpress.org/support/users/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/3b3da48ebc54d05ddce09dfda6ff3919](https://gist.github.com/wpmudev-sls/3b3da48ebc54d05ddce09dfda6ff3919)
 * You’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-plugins](https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins)
 * Please do let us know how that goes.
 * Kind Regards,
    Nithin
 *  Plugin Support [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-invalid-payment-amount-3/#post-15416007)
 * Hello [@sagithereal](https://wordpress.org/support/users/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
    Kasia
 *  Thread Starter [sagithereal](https://wordpress.org/support/users/sagithereal/)
 * (@sagithereal)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-invalid-payment-amount-3/#post-15416527)
 * well, 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 appears
 * If 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 4 years, 3 months ago by [sagithereal](https://wordpress.org/support/users/sagithereal/).
    -  This reply was modified 4 years, 3 months ago by [sagithereal](https://wordpress.org/support/users/sagithereal/).
 *  Plugin Support [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * (@wpmudevsupport12)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-invalid-payment-amount-3/#post-15422860)
 * Hi [@sagithereal](https://wordpress.org/support/users/sagithereal/)
 * Sorry to hear the issue persists.
 * We pinged our developers to double check this and we will keep you posted.
 * Best Regards
    Patrick Freitas
 *  Plugin Support [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * (@wpmudevsupport12)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-invalid-payment-amount-3/#post-15426404)
 * Hi [@sagithereal](https://wordpress.org/support/users/sagithereal/)
 * Could you please send me an email to [contact@wpmudev.org](https://wordpress.org/support/topic/error-invalid-payment-amount-3/contact@wpmudev.org?output_format=md)
   using this template:
 * > Subject: “Attn: Patrick Freitas”
   > Message: [https://wordpress.org/support/topic/error-invalid-payment-amount-3/](https://wordpress.org/support/topic/error-invalid-payment-amount-3/)
 * Best Regards
    Patrick Freitas

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Error! Invalid payment amount!’ is closed to new replies.

 * ![](https://ps.w.org/forminator/assets/icon-256x256.gif?rev=3443182)
 * [Forminator Forms – Contact Form, Payment Form & Custom Form Builder](https://wordpress.org/plugins/forminator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forminator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forminator/)
 * [Active Topics](https://wordpress.org/support/plugin/forminator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forminator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forminator/reviews/)

## Tags

 * [payment error](https://wordpress.org/support/topic-tag/payment-error/)
 * [paypal](https://wordpress.org/support/topic-tag/paypal/)

 * 14 replies
 * 5 participants
 * Last reply from: [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/error-invalid-payment-amount-3/#post-15426404)
 * Status: resolved