X-Git-Url: http://git.freeside.biz/gitweb/?p=Business-OnlinePayment-IPPay.git;a=blobdiff_plain;f=IPPay.pm;h=4d9dbd5360d7db83efc5afcec12f1cc1226ebdab;hp=8060892523bcbce7468aba652cddc133f38c7bc2;hb=HEAD;hpb=c4c615332e053a8f5cffc3af2fc0f8cedaae0e54 diff --git a/IPPay.pm b/IPPay.pm index 8060892..4d9dbd5 100644 --- a/IPPay.pm +++ b/IPPay.pm @@ -11,7 +11,7 @@ use Business::OnlinePayment::HTTPS; use vars qw($VERSION $DEBUG @ISA $me); @ISA = qw(Business::OnlinePayment::HTTPS); -$VERSION = '0.10'; +$VERSION = '0.11_01'; $VERSION = eval $VERSION; # modperlstyle: convert the string into a number $DEBUG = 0; @@ -217,6 +217,7 @@ sub submit { } if ($self->test_transaction()) { $content{'login'} = 'TESTTERMINAL'; + $self->server('testgtwy.ippay.com') if $self->server eq 'gtwy.ippay.com'; } $self->content(%content); @@ -377,11 +378,11 @@ sub submit { ENCODING => 'us-ascii', ); $writer->xmlDecl(); - $writer->startTag('JetPay'); + $writer->startTag('ippay'); foreach ( keys ( %req ) ) { $self->_xmlwrite($writer, $_, $req{$_}); } - $writer->endTag('JetPay'); + $writer->endTag('ippay'); $writer->end(); warn "$post_data\n" if $DEBUG > 1; @@ -448,7 +449,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); @@ -625,6 +627,15 @@ Current maintainer: Ivan Kohler Reverse Authorization patch from dougforpres +=head1 COPYRIGHT AND LICENSE + +Copyright (c) 1999 Jason Kohles +Copyright (c) 2002-2003 Ivan Kohler +Copyright (c) 2008-2021 Freeside Internet Services, Inc. + +All rights reserved. This program is free software; you can redistribute it +and/or modify it under the same terms as Perl itself. + =head1 ADVERTISEMENT Need a complete, open-source back-office and customer self-service solution?