Title: Error! Invalid payment amount!
Last modified: March 11, 2021

---

# Error! Invalid payment amount!

 *  Resolved [jberry86](https://wordpress.org/support/users/jberry86/)
 * (@jberry86)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/error-invalid-payment-amount/)
 * When trying to do Paypal checkout based on a calculation field consisiting of
   the following:
    `(({select-1} + {radio-1}) * 1.031) + 0.32` The Total field on
   the page and the amount passed to Paypal are the same, however after Paypal is
   submitted (and successfully charged I might add), the webpage throws the error“
   Error! Invalid payment amount!”.
 * Digging into the code, there is a penny difference between the amount in the 
   Total Field and that Paypal charged vs. the data compared from:
    `floatval( $
   charge_amount )`
 * The data for select-1 field is $5, and from radio-1 is $0. The calculated total
   is $5.475, with the Total Due field cutting at 2 decimals. The amount shown on
   the page due and the amount Paypal charges is $5.47, but the charge_amount floatval
   used for comparison ends up being $5.48. It’s like the visible field is truncating
   at 2 decimals, but the charge_amount is rounding up (like you should with a currency)?
 * Any suggestions?
    -  This topic was modified 5 years, 2 months ago by [jberry86](https://wordpress.org/support/users/jberry86/).
    -  This topic was modified 5 years, 2 months ago by [jberry86](https://wordpress.org/support/users/jberry86/).
 * 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%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * (@wpmudevsupport12)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/error-invalid-payment-amount/#post-14180113)
 * Hi [@jberry86](https://wordpress.org/support/users/jberry86/)
 * Sorry to hear you are having this issue.
 * I was able to replicate the problem and we will report to the plugin developers
   this situation.
 * I’m afraid we can’t give an estimated time to release a fixed version but our
   team is working on some updates for the payment module.
 * Kindly keep eyes on the plugin update.
    Best Regards Patrick Freitas
 *  Plugin Support [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * (@wpmudevsupport12)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/error-invalid-payment-amount/#post-14207993)
 * Hi [@jberry86](https://wordpress.org/support/users/jberry86/)
 * I hope you are doing well
 * Our developers confirmed the issue and implemented a fix, it should be coming
   on a future release.
 * I’m marking this ticket as resolved, feel free to ping us any time you need.
 * Please, keep the yes on the updates and changelogs.
 * Best Regards
    Patrick Freitas

Viewing 2 replies - 1 through 2 (of 2 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/)

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