Req #16049 [Opn]: Make CreditCard::expDate have a setter
| From: | daniel dot oconnor at gmail dot com | Date: | Sat, 21 Mar 2009 02:30:42 +0000 |
| Subject: | Req #16049 [Opn]: Make CreditCard::expDate have a setter | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-211@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=16049&edit=1
ID: 16049
Updated by: daniel.oconnor@gmail.com
Reported By: daniel dot oconnor at gmail dot com
Summary: Make CreditCard::expDate have a setter
Status: Open
Type: Feature/Change Request
Package: Payment_Process2
Package Version: 0.2.0
PHP Version: 5.2.9
-Assigned To:
+Assigned To: doconnor
Roadmap Versions:
New Comment:
-Assigned To:
+Assigned To: doconnor
Previous Comments:
------------------------------------------------------------------------
[2009-03-20 05:02:48] doconnor
Description:
------------
Expiry date is modeled differently for different drivers.
Validation is a pain.
Make it so there is a:
$card->setExpiryDate($month, $year); // $month should be 0-12 $year
should be 4 digits
It should raise exceptions if either thing is invalid.
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=16049&edit=1