Subject: | Documentation on cardtype() incorrect |
The current POD (in version 0.27) states:
----
The cardtype() subroutine returns a string containing the type of card: "MasterCard", "VISA", and so on.
----
However, the actual return value on Visa cards is 'VISA card'. Further,
return values on other cards are completely absent, forcing users to
read the source.
I suggest the following be added to the cardtype() documentation:
----
Possible return values are:
VISA card
MasterCard
Discover card
American Express card
Diner's Club/Carte Blanche
enRoute
JCB
BankCard
Unknown
"Not a credit card" is returned on obviously invalid
data values.
----
The above list covers all return values in the 0.27 version.