X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpay_batch.pm;h=104975100e545dc37a3b3b133b70fbd4141f1353;hb=e2a9dcac3b97254fc0a64ce3e2bf1ce582ce8162;hp=35c79f50b1d7f94c1f942e19ffc4f8b0be318c32;hpb=1259a17db297fa2352619b29f2c5bd34e313cd64;p=freeside.git diff --git a/FS/FS/pay_batch.pm b/FS/FS/pay_batch.pm index 35c79f50b..104975100 100644 --- a/FS/FS/pay_batch.pm +++ b/FS/FS/pay_batch.pm @@ -9,7 +9,7 @@ use List::Util qw(sum); use Time::Local; use Text::CSV_XS; use Date::Parse qw(str2time); -use Business::CreditCard qw(cardtype); +use Business::CreditCard qw( 0.35 cardtype ); use FS::Record qw( dbh qsearch qsearchs ); use FS::Conf; use FS::cust_pay; @@ -614,7 +614,8 @@ sub import_from_gateway { my $error; my $paybatch = $gateway->gatewaynum . '-' . $gateway->gateway_module . - ':' . $item->authorization . ':' . $item->order_number; + ':' . ($item->authorization || '') . + ':' . ($item->order_number || ''); if ( $batch->incoming ) { # This is a one-way batch.