Ready to get started?Download WordPress


WP Stripe
[resolved] Misleading error message when user enters "$5" (3 posts)

  1. PaulMorris
    Posted 1 year ago #

    Hi Noel,

    If someone enters "$5" instead of just "5" the resulting error message (from stripe.com) is:

    "Invalid amount. Amount must be an integer in cents."

    But that error message is not accurate for WP-Stripe which wants an integer in dollars, not in cents. So if the user then enters "500" they would be charged $500 and not $5.00 (!)

    (One way around this would be to have the code automatically strip out the "$" (or any other non-numerical character?) from "$5". Then the error message doesn't appear. Or some other fix.)

    Just something to be aware of. Cheers,


  2. Noel Tock
    Human Made
    Plugin Author

    Posted 1 year ago #

    Interesting stripe response, I'll have a look at what we can do. Thanks!

  3. Noel Tock
    Human Made
    Plugin Author

    Posted 1 year ago #

    I've put in a quick fix for $ specifically. Once Stripe grows, we'll come up with a smarter solution.


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.