[freeside-commits] branch FREESIDE_4_BRANCH updated. 64cd32971341855c3d5e9dee9bf0a1e149eba740

Ivan ivan at 420.am
Fri Feb 12 10:52:14 PST 2016


The branch, FREESIDE_4_BRANCH has been updated
       via  64cd32971341855c3d5e9dee9bf0a1e149eba740 (commit)
      from  21ffa4e5b853d777c0956dfa9b8f4984e619a43f (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 64cd32971341855c3d5e9dee9bf0a1e149eba740
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Feb 12 10:52:13 2016 -0800

    ignore card type for upgrades, RT#32043

diff --git a/FS/FS/cust_payby.pm b/FS/FS/cust_payby.pm
index a686242..030aed6 100644
--- a/FS/FS/cust_payby.pm
+++ b/FS/FS/cust_payby.pm
@@ -19,6 +19,7 @@ sub nohistory_fields { ('payinfo', 'paycvv'); }
 our $ignore_expired_card = 0;
 our $ignore_banned_card = 0;
 our $ignore_invalid_card = 0;
+our $ignore_cardtype = 0;
 
 our $conf;
 install_callback FS::UID sub { 
@@ -496,6 +497,8 @@ sub check {
 sub check_payinfo_cardtype {
   my $self = shift;
 
+  return '' if $ignore_cardtype;
+
   return '' unless $self->payby =~ /^(CARD|CHEK)$/;
 
   my $payinfo = $self->payinfo;

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

Summary of changes:
 FS/FS/cust_payby.pm |    3 +++
 1 file changed, 3 insertions(+)




More information about the freeside-commits mailing list