diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-10-29 12:02:31 -0500 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-10-29 12:02:31 -0500 |
commit | b72e70605eb51f2336230bbef8bf7f6fd2fe6456 (patch) | |
tree | 938d4972c0375829e312cc224dfd1b6ab1b185d7 /FS/FS/ClientAPI | |
parent | 0d9ffbafedc170c79ef5587af8c836579eb1c6fc (diff) |
71513: Card tokenization [checkpoint, not ready for backport]
Diffstat (limited to 'FS/FS/ClientAPI')
-rw-r--r-- | FS/FS/ClientAPI/MyAccount.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm index 7c17ae3..091d6ac 100644 --- a/FS/FS/ClientAPI/MyAccount.pm +++ b/FS/FS/ClientAPI/MyAccount.pm @@ -1022,7 +1022,7 @@ sub validate_payment { validate($payinfo) or return { 'error' => gettext('invalid_card') }; # . ": ". $self->payinfo return { 'error' => gettext('unknown_card_type') } - if $payinfo !~ /^99\d{14}$/ && cardtype($payinfo) eq "Unknown"; + if !$cust_main->tokenized($payinfo) && cardtype($payinfo) eq "Unknown"; if ( length($p->{'paycvv'}) && $p->{'paycvv'} !~ /^\s*$/ ) { if ( cardtype($payinfo) eq 'American Express card' ) { |