Date issue between cust_bill.pm and cust_main.cgi
Webmaster
webmaster at nwdhosting.com
Wed Mar 17 14:44:19 PST 2004
I was having a problem processing credit cards, kept comming back
expiration date invalid. I discovered that the date was being entered in
the database with:
$cgi->param('paydate', $cgi->param( $payby. '_month' ). '-'.
$cgi->param( $payby. '_year' ) );
within cust_bill.pm, the regexp was:
$cust_main->paydate =~ /^\d{2}(\d{2})[\/\-](\d+)[\/\-]\d+$/;
so I needed to change the line in process/cust_main.cgi to:
$cgi->param('paydate', $cgi->param( $payby. '_year' ). '-'. $cgi->param(
$payby. '_month' ). '-'. "1" );
Brian
More information about the freeside-devel
mailing list