Expiration Date Problem

4 views
Skip to first unread message

ebstauffer

unread,
Sep 8, 2008, 11:13:33 AM9/8/08
to phpPayPal
OK, here's the problem...

You expose only a single field to capture the expiration date:

public $expire_date; // EXPDATE - MMYYYY

However down in the urlencodeVariables() method you dont refer to that
expiration date property:

$this->expire_date_month = urlencode(str_pad($this->expire_date_month,
2, '0', STR_PAD_LEFT));
$this->expire_date_year = urlencode($this->expire_date_year);

To eliminate any input error I might have separated out EXPDATE field
as required by paypal into separate month and year properties and then
stitched them together (padding month as appropriate) and the setting
the EXPDATE parm.

Your thoughts?

Drew

unread,
Sep 8, 2008, 12:32:58 PM9/8/08
to phpPayPal
Good catch! I'll make changes nad hopefully update the download soon.

Thanks so much!
Reply all
Reply to author
Forward
0 new messages