Given a user is entering a payment type
When the user clicks the affordance to save the payment type
And the expiration date is prior to the current date
Then the user should be notified that the expiration date is invalid
And the record should not be added
we'll put conditionals into the form where payment types are listed that checks the "exp. date" against the current.date using:
??import datetimetime = datetime.datetime.now()
ORM >> .filter(exp_date__lte = time)??
If the provided Expiration Date is before the Current Date then we will render the Select Payment Type again.
Maybe with a (Please select different Payment Type) message??
Given a user is entering a payment type When the user clicks the affordance to save the payment type And the expiration date is prior to the current date Then the user should be notified that the expiration date is invalid And the record should not be added