[freeside-commits] freeside/httemplate/misc/process payment.cgi, 1.19, 1.20
Ivan,,,
ivan at wavetail.420.am
Tue May 25 05:14:53 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/misc/process
In directory wavetail.420.am:/tmp/cvs-serv2041
Modified Files:
payment.cgi
Log Message:
cardfortress bit
Index: payment.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/process/payment.cgi,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -w -d -r1.19 -r1.20
--- payment.cgi 5 Oct 2009 02:16:46 -0000 1.19
+++ payment.cgi 25 May 2010 12:14:51 -0000 1.20
@@ -97,7 +97,7 @@
validate($payinfo)
or errorpage(gettext('invalid_card')); # . ": ". $self->payinfo;
errorpage(gettext('unknown_card_type'))
- if cardtype($payinfo) eq "Unknown";
+ if $payinfo !~ /^99\d{14}$/ && cardtype($payinfo) eq "Unknown";
if ( defined $cust_main->dbdef_table->column('paycvv') ) {
if ( length($cgi->param('paycvv') ) ) {
@@ -177,7 +177,7 @@
} else {
die "unknown payby $payby";
}
- $new->set( 'payinfo' => $payinfo );
+ $new->set( 'payinfo' => $cust_main->card_token || $payinfo );
$new->set( 'paydate' => "$year-$month-01" );
$new->set( 'payname' => $payname );
More information about the freeside-commits
mailing list