Support » Plugin: WP Stripe » [Plugin: WP Stripe] Misleading error message when user enters "$5"

  • Resolved PaulMorris

    (@paulmorris)


    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,
    -Paul

    http://wordpress.org/extend/plugins/wp-stripe/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Noel Tock

    (@noel_tock)

    Human Made

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

    Plugin Author Noel Tock

    (@noel_tock)

    Human Made

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

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP Stripe] Misleading error message when user enters "$5"’ is closed to new replies.