summaryrefslogtreecommitdiff
path: root/FS/FS
diff options
context:
space:
mode:
authorjeff <jeff>2007-04-06 23:58:52 +0000
committerjeff <jeff>2007-04-06 23:58:52 +0000
commita233a099b6e4464fced8e42629d118ab7154c9ef (patch)
treeb026d561c37ea56e3d3f90910497dd2ca0ff6527 /FS/FS
parent59a1b6ce3bf606b2a3cc7638905431b5a73c3e2d (diff)
integrate new echeck fields into freeside backend payment processing (backport)
Diffstat (limited to 'FS/FS')
-rw-r--r--FS/FS/cust_main.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index f8ab82443..60987ed9d 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -70,7 +70,7 @@ $skip_fuzzyfiles = 0;
$ignore_expired_card = 0;
@encrypted_fields = ('payinfo', 'paycvv');
-@paytypes = ('Personal checking', 'Personal savings', 'Business checking', 'Business savings');
+@paytypes = ('', 'Personal checking', 'Personal savings', 'Business checking', 'Business savings');
#ask FS::UID to run this stuff for us later
#$FS::UID::callback{'FS::cust_main'} = sub {
@@ -2609,9 +2609,12 @@ sub realtime_bop {
( $content{account_number}, $content{routing_code} ) =
split('@', $payinfo);
$content{bank_name} = $o_payname;
- $content{account_type} = 'CHECKING';
+ $content{bank_state} = $self->getfield('paystate');
+ $content{account_type} = uc($self->getfield('paytype')) || 'CHECKING';
$content{account_name} = $payname;
$content{customer_org} = $self->company ? 'B' : 'I';
+ $content{state_id} = $self->getfield('stateid');
+ $content{state_id_state} = $self->getfield('stateid_state');
$content{customer_ssn} = exists($options{'ss'})
? $options{'ss'}
: $self->ss;