[freeside-commits] branch master updated. 7fe97938da9c746887cc3d4aa62399bd589995b0

Ivan ivan at 420.am
Wed Jan 25 17:31:47 PST 2017


The branch, master has been updated
       via  7fe97938da9c746887cc3d4aa62399bd589995b0 (commit)
      from  e00bf149d4f7335832b0316854ccc94e171af134 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7fe97938da9c746887cc3d4aa62399bd589995b0
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Jan 25 17:31:46 2017 -0800

    fix upgrades, fix bogus "Tokenized" paycardtype, RT#71513

diff --git a/FS/FS/cust_payby.pm b/FS/FS/cust_payby.pm
index 53608cf..36f90df 100644
--- a/FS/FS/cust_payby.pm
+++ b/FS/FS/cust_payby.pm
@@ -356,8 +356,7 @@ sub check {
     validate($payinfo)
       or return gettext('invalid_card'); # . ": ". $self->payinfo;
 
-    my $cardtype = cardtype($payinfo);
-    $cardtype = 'Tokenized' if $self->tokenized; #token
+    my $cardtype = $self->paycardtype || cardtype($payinfo);
     
     return gettext('unknown_card_type') if $cardtype eq "Unknown";
     
@@ -547,7 +546,6 @@ sub check_payinfo_cardtype {
   $payinfo =~ s/\D//g;
 
   if ( $self->tokenized($payinfo) ) {
-    $self->set('paycardtype', 'Tokenized');
     return '';
   }
 

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/cust_payby.pm |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)




More information about the freeside-commits mailing list