Page MenuHomePhabricator

Expiration date error message is wrong when date < now
Closed, DeclinedPublic

Description

Steps to reproduce

  • Start donating via the WorldPay form.
  • Enter an expiration date in the past.
  • Submit.

You'll get a field validation error "Please enter the card's expiration date." I did. It's just invalid. I think most of our fields have this issue.

Event Timeline

awight raised the priority of this task from to Needs Triage.
awight updated the task description. (Show Details)
awight subscribed.

If this isn't part of the Janelle doc, it should be. Megan said that you guys would look into the messaging, so I wanted to bring this to your attention.

This isn't a part of her doc; I actually didn't have her go through the Worldpay flow. We do have a suggestion for the GC version of this error, which is equally confusing ("Field Expiration date: has a minimum length of 4 characters" when you enter the incorrect date or no date).

We are suggesting this as the best error response: Please enter expiration date in MM/YY format
Perhaps for the specific error Adam made, we could say: Please enter a valid expiration date - but I think the one above will cover most exp date errors.

I'd love to see this doc!

Just a small suggestion for the UX discussion, it's not technically difficult to distinguish between different error conditions, if that helps your message triage at all...

This seems fine on the GC form.