CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Credit Card Expiration Date Validation
Pages: [1]

Author Topic: Credit Card Expiration Date Validation  (Read 3671 times)

rs3515

  • I’m new here
  • *
  • Posts: 29
  • Karma: 1
Credit Card Expiration Date Validation
June 02, 2008, 11:24:17 pm
I'm wondering, is there a reason why the error validation for expiration date checks if the month/year combination is valid, but does not check if month is selected? 

For example, I can enter "2008" for the year, leave the month blank, and the code validates it with no problem.  This seems like a rather basic requirement that both month *and* year should be required.

What's the best way to add this?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Credit Card Expiration Date Validation
June 03, 2008, 12:42:37 am

this is a bug, can you please file an issue and we'll fix it in 2.1

You will need to fix the function currentDate to ensure that both mon and year have a value

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

rs3515

  • I’m new here
  • *
  • Posts: 29
  • Karma: 1
Re: Credit Card Expiration Date Validation
June 03, 2008, 05:37:38 pm
Sure ... I've not posted an issue before.  Do I have to sign up with the Issue Tracker to do so?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Credit Card Expiration Date Validation
June 03, 2008, 05:48:19 pm

yes, u need to sign up for an account, http://issues.civicrm.org/. hopefully all applications will be openID enabled sometime real soon and these multiple account issues will disappear :)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

rs3515

  • I’m new here
  • *
  • Posts: 29
  • Karma: 1
Re: Credit Card Expiration Date Validation
June 04, 2008, 04:53:36 am
Ah ok ... I've posted an issue on this, but I think I entered the wrong affects/fix versions info.  Sorry about that.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Credit Card Expiration Date Validation

This forum was archived on 2017-11-26.