summaryrefslogtreecommitdiff
path: root/IPPay.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IPPay.pm')
-rw-r--r--IPPay.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IPPay.pm b/IPPay.pm
index 8060892..666f5e8 100644
--- a/IPPay.pm
+++ b/IPPay.pm
@@ -448,7 +448,8 @@ sub _xmlwrite {
if ( $item eq 'ACH' ) {
$att{'Type'} = $self->{_content}->{'account_type'}
if $self->{_content}->{'account_type'}; #necessary so we don't pass empty?
- $att{'SEC'} = 'PPD';
+ $att{'SEC'} = $self->{_content}->{'nacha_sec_code'}
+ || ( $att{'Type'} =~ /business/i ? 'CCD' : 'PPD' );
}
$writer->startTag($item, %att);