X-Git-Url: http://git.freeside.biz/gitweb/?p=Business-OnlinePayment-IPPay.git;a=blobdiff_plain;f=IPPay.pm;fp=IPPay.pm;h=666f5e8446a82a3901be7183dc24cdd74bee9700;hp=8060892523bcbce7468aba652cddc133f38c7bc2;hb=ec9bcc69c60f01f60cdc9b628355cd6ac2f2c8bc;hpb=4c36b297988c48376171733adce79d60582e9207 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);