-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Credit card expiration date validation fails on iOS preventing mobile users from making donations. This can be easily replicated on the donation page with mobile, or with a desktop browser if you omit the /
cc-exp has inputmode="numeric", the javascript seems to be expecting a / to split month and year, but you cannot enter this character thus leading to a validation error.
exp_month: $form.find(".cc-exp").val().split("/")[0],
exp_year: $form.find(".cc-exp").val().split("/")[1]
Beyond this, the form appears to be using a deprecated Stripe.js component, it may be worth considering a move to the Payment Element for support of non-card payment methods and mobile payments like Apple / Google Pay. This would require some back-end changes due to updates in the Stripe API (a move from Tokens->Charges to PaymentIntents).
I have too much on my plate for the next month or two, but if the issue remains unaddressed at that point may take a crack at it!