diff -Nru libbusiness-onlinepayment-ippay-perl-0.11/Changes libbusiness-onlinepayment-ippay-perl-0.12/Changes --- libbusiness-onlinepayment-ippay-perl-0.11/Changes 2021-04-09 14:37:01.000000000 +0000 +++ libbusiness-onlinepayment-ippay-perl-0.12/Changes 2022-09-08 19:41:37.000000000 +0000 @@ -1,6 +1,10 @@ Revision history for Perl extension Business::OnlinePayment::IPPay. -0.11 Fri Apr 09 07:35:21 AM PDT 2021 +0.12 Thu 08 Sep 2022 12:41:25 PM PDT + - Default name to first_name + last_name when it is empty + - Same for ship_name + +0.11 Fri Apr 09 07:35:21 AM PDT 2021 - ACH SEC code: Allow setting, default to CCD for business accounts, PPD otherwise (was: always PPD) - doc: Update copyright and maintainer information diff -Nru libbusiness-onlinepayment-ippay-perl-0.11/debian/changelog libbusiness-onlinepayment-ippay-perl-0.12/debian/changelog --- libbusiness-onlinepayment-ippay-perl-0.11/debian/changelog 2021-09-25 12:42:20.000000000 +0000 +++ libbusiness-onlinepayment-ippay-perl-0.12/debian/changelog 2022-09-12 15:31:05.000000000 +0000 @@ -1,3 +1,13 @@ +libbusiness-onlinepayment-ippay-perl (0.12-1) unstable; urgency=medium + + * Team upload + * Import upstream version 0.12. + * Update years of upstream copyright. + * Remove obsolete alternative (test) dependencies. + * Declare compliance with Debian Policy 4.6.1. + + -- gregor herrmann Mon, 12 Sep 2022 17:31:05 +0200 + libbusiness-onlinepayment-ippay-perl (0.11-1) unstable; urgency=medium * Team upload diff -Nru libbusiness-onlinepayment-ippay-perl-0.11/debian/control libbusiness-onlinepayment-ippay-perl-0.12/debian/control --- libbusiness-onlinepayment-ippay-perl-0.11/debian/control 2021-09-25 12:41:51.000000000 +0000 +++ libbusiness-onlinepayment-ippay-perl-0.12/debian/control 2022-09-12 15:31:05.000000000 +0000 @@ -6,13 +6,13 @@ Testsuite: autopkgtest-pkg-perl Priority: optional Build-Depends: debhelper-compat (= 13) -Build-Depends-Indep: perl, - libbusiness-onlinepayment-perl , - liblocale-codes-perl | perl (<< 5.28) , +Build-Depends-Indep: libbusiness-onlinepayment-perl , + liblocale-codes-perl , libtie-ixhash-perl , libxml-simple-perl , - libxml-writer-perl -Standards-Version: 4.6.0 + libxml-writer-perl , + perl +Standards-Version: 4.6.1 Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libbusiness-onlinepayment-ippay-perl Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libbusiness-onlinepayment-ippay-perl.git Homepage: http://420.am/business-onlinepayment/ @@ -20,10 +20,10 @@ Package: libbusiness-onlinepayment-ippay-perl Architecture: all -Depends: ${perl:Depends}, - ${misc:Depends}, +Depends: ${misc:Depends}, + ${perl:Depends}, libbusiness-onlinepayment-perl, - liblocale-codes-perl | perl (<< 5.28), + liblocale-codes-perl, libtie-ixhash-perl, libxml-simple-perl, libxml-writer-perl diff -Nru libbusiness-onlinepayment-ippay-perl-0.11/debian/copyright libbusiness-onlinepayment-ippay-perl-0.12/debian/copyright --- libbusiness-onlinepayment-ippay-perl-0.11/debian/copyright 2021-09-25 12:20:25.000000000 +0000 +++ libbusiness-onlinepayment-ippay-perl-0.12/debian/copyright 2022-09-12 15:31:05.000000000 +0000 @@ -7,7 +7,7 @@ Copyright: 1999, Jason Kohles 2002-2003, Ivan Kohler - 2008-2021, Freeside Internet Services, Inc. + 2008-2022, Freeside Internet Services, Inc. License: Artistic or GPL-1+ Files: debian/* diff -Nru libbusiness-onlinepayment-ippay-perl-0.11/IPPay.pm libbusiness-onlinepayment-ippay-perl-0.12/IPPay.pm --- libbusiness-onlinepayment-ippay-perl-0.11/IPPay.pm 2021-04-09 14:35:02.000000000 +0000 +++ libbusiness-onlinepayment-ippay-perl-0.12/IPPay.pm 2022-09-08 19:41:18.000000000 +0000 @@ -11,7 +11,7 @@ use vars qw($VERSION $DEBUG @ISA $me); @ISA = qw(Business::OnlinePayment::HTTPS); -$VERSION = '0.11'; +$VERSION = '0.12'; $VERSION = eval $VERSION; # modperlstyle: convert the string into a number $DEBUG = 0; @@ -254,6 +254,10 @@ $amount =~ s/\.//; } + my $name = length($content{name}) + ? $content{name} + : $content{first_name}. ' '. $content{last_name}; + my $check_number = $content{check_number} || "100" # make one up if($content{account_number}); @@ -270,6 +274,13 @@ unless $country; $country = uc($country) if $country; + my $ship_name = + length($content{ship_name}) + ? $content{ship_name} + : (length($content{ship_first_name}) || length($content{ship_last_name})) + ? $content{ship_first_name}. ' '. $content{ship_last_name} + : ''; + my $ship_country = country2code( $content{ship_country}, LOCALE_CODE_ALPHA_3 ); $ship_country = country_code2code( $content{ship_country}, @@ -321,7 +332,7 @@ $self->revmap_fields( CustomerPO => 'CustomerPO', ShippingMethod => 'ShippingMethod', - ShippingName => 'ship_name', + ShippingName => \$ship_name, ShippingAddr => \%shippingaddr, ); @@ -348,7 +359,7 @@ Track1 => 'track1', Track2 => 'track2', ACH => \%ach, - CardName => 'name', + CardName => \$name, DispositionType => 'DispositionType', TotalAmount => \$amount, FeeAmount => 'FeeAmount', @@ -608,13 +619,14 @@ Country => 'ship_country', # forced to ISO-3166-alpha-3 Phone => 'ship_phone', +=head1 NOTE + =head1 COMPATIBILITY Version 0.07 changes the server name and path for IPPay's late 2012 update. -Business::OnlinePayment::IPPay implemented the IPPay XML Product Specifications -Revision 1.1.2 (historically), updated in 2021 using revision 1-1-9.1 -(September 2018). +Business::OnlinePayment::IPPay uses IPPay XML Product Specifications version +1.1.2. See http://www.ippay.com/ for more information. @@ -630,7 +642,7 @@ Copyright (c) 1999 Jason Kohles Copyright (c) 2002-2003 Ivan Kohler -Copyright (c) 2008-2021 Freeside Internet Services, Inc. +Copyright (c) 2008-2022 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. diff -Nru libbusiness-onlinepayment-ippay-perl-0.11/META.json libbusiness-onlinepayment-ippay-perl-0.12/META.json --- libbusiness-onlinepayment-ippay-perl-0.11/META.json 2021-04-09 14:39:15.000000000 +0000 +++ libbusiness-onlinepayment-ippay-perl-0.12/META.json 2022-09-08 19:42:26.000000000 +0000 @@ -4,7 +4,7 @@ "Ivan Kohler " ], "dynamic_config" : 1, - "generated_by" : "ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150010", + "generated_by" : "ExtUtils::MakeMaker version 7.44, CPAN::Meta::Converter version 2.150010", "license" : [ "unknown" ], @@ -43,6 +43,6 @@ } }, "release_status" : "stable", - "version" : "0.11", - "x_serialization_backend" : "JSON::PP version 2.97001" + "version" : "0.12", + "x_serialization_backend" : "JSON::PP version 4.04" } diff -Nru libbusiness-onlinepayment-ippay-perl-0.11/META.yml libbusiness-onlinepayment-ippay-perl-0.12/META.yml --- libbusiness-onlinepayment-ippay-perl-0.11/META.yml 2021-04-09 14:39:15.000000000 +0000 +++ libbusiness-onlinepayment-ippay-perl-0.12/META.yml 2022-09-08 19:42:26.000000000 +0000 @@ -7,7 +7,7 @@ configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 1 -generated_by: 'ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150010' +generated_by: 'ExtUtils::MakeMaker version 7.44, CPAN::Meta::Converter version 2.150010' license: unknown meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -25,5 +25,5 @@ Tie::IxHash: '0' XML::Simple: '0' XML::Writer: '0' -version: '0.11' +version: '0.12' x_serialization_backend: 'CPAN::Meta::YAML version 0.018'