FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=16351&edit=1

ID: 16351
Updated by: pear@11abacus.com
Reported By: j at teamonetickets dot com
Summary: Need method to return the card type
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
Package: Validate_Finance_CreditCard
Operating System: Any
Package Version: 0.5.3
PHP Version: Irrelevant
Roadmap Versions:
New Comment:

-Status: Open
+Status: Wont fix
This is a validation package, so determining the card type based on
card number is out of scope.

I do see benefits for Validate_* packages to provide methods to return
possible values, or do reverse resolving, but this is not the current
approach for these packages.

Please feel free to discuss the subject on the mailing list.

Thanks,

-Philippe


Previous Comments:
------------------------------------------------------------------------

[2009-06-19 23:54:44] #fd473dddd957be5fc09

Description:
------------
The type() method seems pointless to me unless you already know the
card type. It would be better to have it either return the card type or
add a method to do so. I shouldn't have to loop through a bunch of types
testing type() to see which one it is.

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
grouppear-bugs @
categoriesphp
postedJul 2, '09 at 7:25p
activeJul 2, '09 at 7:25p
posts1
users1
websitepear.php.net

1 user in discussion

Pear: 1 post

People

Translate

site design / logo © 2022 Grokbase