projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
717ed95
)
19 digit visa and discover cards
author
Ivan Kohler
<ivan@freeside.biz>
Sun, 19 Feb 2017 01:10:24 +0000
(17:10 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Sun, 19 Feb 2017 01:10:24 +0000
(17:10 -0800)
FS/FS/ClientAPI/MyAccount.pm
patch
|
blob
|
history
FS/FS/payinfo_Mixin.pm
patch
|
blob
|
history
fs_selfservice/FS-SelfService/cgi/agent.cgi
patch
|
blob
|
history
fs_selfservice/FS-SelfService/cgi/selfservice.cgi
patch
|
blob
|
history
fs_selfservice/FS-SelfService/cgi/signup.cgi
patch
|
blob
|
history
httemplate/misc/process/payment.cgi
patch
|
blob
|
history
httemplate/search/cust_main.cgi
patch
|
blob
|
history
diff --git
a/FS/FS/ClientAPI/MyAccount.pm
b/FS/FS/ClientAPI/MyAccount.pm
index
4a878f8
..
bb629a9
100644
(file)
--- a/
FS/FS/ClientAPI/MyAccount.pm
+++ b/
FS/FS/ClientAPI/MyAccount.pm
@@
-1007,7
+1007,7
@@
sub validate_payment {
}
$payinfo =~ s/\D//g;
}
$payinfo =~ s/\D//g;
- $payinfo =~ /^(\d{13,1
6
}|\d{8,9})$/
+ $payinfo =~ /^(\d{13,1
9
}|\d{8,9})$/
or return { 'error' => gettext('invalid_card') }; # . ": ". $self->payinfo
$payinfo = $1;
or return { 'error' => gettext('invalid_card') }; # . ": ". $self->payinfo
$payinfo = $1;
diff --git
a/FS/FS/payinfo_Mixin.pm
b/FS/FS/payinfo_Mixin.pm
index
c79729a
..
3820d7b
100644
(file)
--- a/
FS/FS/payinfo_Mixin.pm
+++ b/
FS/FS/payinfo_Mixin.pm
@@
-218,7
+218,7
@@
sub payinfo_check {
$payinfo =~ s/\D//g;
$self->payinfo($payinfo);
if ( $self->payinfo ) {
$payinfo =~ s/\D//g;
$self->payinfo($payinfo);
if ( $self->payinfo ) {
- $self->payinfo =~ /^(\d{13,1
6
}|\d{8,9})$/
+ $self->payinfo =~ /^(\d{13,1
9
}|\d{8,9})$/
or return "Illegal (mistyped?) credit card number (payinfo)";
$self->payinfo($1);
validate($self->payinfo) or return "Illegal credit card number";
or return "Illegal (mistyped?) credit card number (payinfo)";
$self->payinfo($1);
validate($self->payinfo) or return "Illegal credit card number";
diff --git
a/fs_selfservice/FS-SelfService/cgi/agent.cgi
b/fs_selfservice/FS-SelfService/cgi/agent.cgi
index
0af94cd
..
d5147d2
100755
(executable)
--- a/
fs_selfservice/FS-SelfService/cgi/agent.cgi
+++ b/
fs_selfservice/FS-SelfService/cgi/agent.cgi
@@
-150,7
+150,7
@@
sub process_signup {
my $payinfo = $cgi->param('payinfo');
$payinfo =~ s/\D//g;
my $payinfo = $cgi->param('payinfo');
$payinfo =~ s/\D//g;
- $payinfo =~ /^(\d{13,1
6
}|\d{8,9})$/
+ $payinfo =~ /^(\d{13,1
9
}|\d{8,9})$/
or $error ||= $init_data->{msgcat}{invalid_card}; #. $self->payinfo;
$payinfo = $1;
validate($payinfo)
or $error ||= $init_data->{msgcat}{invalid_card}; #. $self->payinfo;
$payinfo = $1;
validate($payinfo)
diff --git
a/fs_selfservice/FS-SelfService/cgi/selfservice.cgi
b/fs_selfservice/FS-SelfService/cgi/selfservice.cgi
index
d44a379
..
3915dca
100755
(executable)
--- a/
fs_selfservice/FS-SelfService/cgi/selfservice.cgi
+++ b/
fs_selfservice/FS-SelfService/cgi/selfservice.cgi
@@
-618,7
+618,7
@@
sub payment_results {
my $payinfo = $cgi->param('payinfo');
$payinfo =~ s/[^\dx]//g;
my $payinfo = $cgi->param('payinfo');
$payinfo =~ s/[^\dx]//g;
- $payinfo =~ /^([\dx]{13,1
6
}|[\dx]{8,9})$/
+ $payinfo =~ /^([\dx]{13,1
9
}|[\dx]{8,9})$/
#or $error ||= $init_data->{msgcat}{invalid_card}; #. $self->payinfo;
or return { 'error' => "illegal card" }; #!!!
$payinfo = $1;
#or $error ||= $init_data->{msgcat}{invalid_card}; #. $self->payinfo;
or return { 'error' => "illegal card" }; #!!!
$payinfo = $1;
diff --git
a/fs_selfservice/FS-SelfService/cgi/signup.cgi
b/fs_selfservice/FS-SelfService/cgi/signup.cgi
index
c696276
..
2411c54
100755
(executable)
--- a/
fs_selfservice/FS-SelfService/cgi/signup.cgi
+++ b/
fs_selfservice/FS-SelfService/cgi/signup.cgi
@@
-201,7
+201,7
@@
if ( $magic eq 'process' || $action eq 'process_signup' ) {
my $payinfo = $cgi->param('payinfo');
$payinfo =~ s/\D//g;
my $payinfo = $cgi->param('payinfo');
$payinfo =~ s/\D//g;
- $payinfo =~ /^(\d{13,1
6
}|\d{8,9})$/
+ $payinfo =~ /^(\d{13,1
9
}|\d{8,9})$/
or $error ||= $init_data->{msgcat}{invalid_card}; #. $self->payinfo;
$payinfo = $1;
validate($payinfo)
or $error ||= $init_data->{msgcat}{invalid_card}; #. $self->payinfo;
$payinfo = $1;
validate($payinfo)
diff --git
a/httemplate/misc/process/payment.cgi
b/httemplate/misc/process/payment.cgi
index
1532605
..
6226ebd
100644
(file)
--- a/
httemplate/misc/process/payment.cgi
+++ b/
httemplate/misc/process/payment.cgi
@@
-129,7
+129,7
@@
if ( (my $custpaybynum = scalar($cgi->param('custpaybynum'))) > 0 ) {
$payinfo = $cgi->param('payinfo');
$payinfo =~ s/\D//g;
$payinfo = $cgi->param('payinfo');
$payinfo =~ s/\D//g;
- $payinfo =~ /^(\d{13,1
6
}|\d{8,9})$/
+ $payinfo =~ /^(\d{13,1
9
}|\d{8,9})$/
or errorpage(gettext('invalid_card'));
$payinfo = $1;
validate($payinfo)
or errorpage(gettext('invalid_card'));
$payinfo = $1;
validate($payinfo)
diff --git
a/httemplate/search/cust_main.cgi
b/httemplate/search/cust_main.cgi
index
7439efe
..
65b8c05
100755
(executable)
--- a/
httemplate/search/cust_main.cgi
+++ b/
httemplate/search/cust_main.cgi
@@
-582,7
+582,7
@@
sub cardsearch {
my($card)=$cgi->param('card');
$card =~ s/\D//g;
my($card)=$cgi->param('card');
$card =~ s/\D//g;
- $card =~ /^(\d{13,1
6
}|\d{8,9})$/ or errorpage(emt("Illegal card number"));
+ $card =~ /^(\d{13,1
9
}|\d{8,9})$/ or errorpage(emt("Illegal card number"));
my($payinfo)=$1;
[ qsearch('cust_main',{'payinfo'=>$payinfo, 'payby'=>'CARD'}),
my($payinfo)=$1;
[ qsearch('cust_main',{'payinfo'=>$payinfo, 'payby'=>'CARD'}),