[Plugin: WP Stripe] Misleading error message when user enters "$5"
-
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
Viewing 2 replies - 1 through 2 (of 2 total)
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.