diff options
Diffstat (limited to 'IPPay.pm')
-rw-r--r-- | IPPay.pm | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |