• Resolved jberry86

    (@jberry86)


    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 3 years, 8 months ago by jberry86.
    • This topic was modified 3 years, 8 months ago by jberry86.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @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

    (@wpmudevsupport12)

    Hi @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.