From: ivan Date: Tue, 15 Oct 2002 09:54:22 +0000 (+0000) Subject: ach fix s/ECHECK/CHECK/ X-Git-Tag: freeside_1_4_1beta5~45 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=2f41eee6c426352659ec718fac4383226c98b0b8;p=freeside.git ach fix s/ECHECK/CHECK/ --- diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 6d9597557..e723c637c 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -624,7 +624,7 @@ for supported processors. sub realtime_ach { my $self = shift; - $self->realtime_bop('ECHECK', @_); + $self->realtime_bop('CHECK', @_); } sub realtime_bop { @@ -642,7 +642,7 @@ sub realtime_bop { $address .= ", ". $cust_main->address2 if $cust_main->address2; my($payname, $payfirst, $paylast); - if ( $cust_main->payname && $method ne 'ECHECK' ) { + if ( $cust_main->payname && $method ne 'CHECK' ) { $payname = $cust_main->payname; $payname =~ /^\s*([\w \,\.\-\']*)?\s+([\w\,\.\-\']+)\s*$/ or do { @@ -686,7 +686,7 @@ sub realtime_bop { $content{card_number} = $cust_main->payinfo; $cust_main->paydate =~ /^\d{2}(\d{2})[\/\-](\d+)[\/\-]\d+$/; $content{expiration} = "$2/$1"; - } elsif ( $method eq 'ECHECK' ) { + } elsif ( $method eq 'CHECK' ) { my($account_number,$routing_code) = $cust_main->payinfo; ( $content{account_number}, $content{routing_code} ) = split('@', $cust_main->payinfo); @@ -765,8 +765,8 @@ sub realtime_bop { if ( $transaction->is_success() ) { my %method2payby = ( - 'CC' => 'CARD', - 'ECHECK' => 'CHEK', + 'CC' => 'CARD', + 'CHECK' => 'CHEK', ); my $cust_pay = new FS::cust_pay ( { @@ -1165,7 +1165,7 @@ sub print_text { =head1 VERSION -$Id: cust_bill.pm,v 1.41.2.6 2002-10-13 01:05:27 ivan Exp $ +$Id: cust_bill.pm,v 1.41.2.7 2002-10-15 09:54:22 ivan Exp $ =head1 BUGS