X-Git-Url: http://git.freeside.biz/gitweb/?p=Business-OnlinePayment-IPPay.git;a=blobdiff_plain;f=IPPay.pm;fp=IPPay.pm;h=963ba5b42d56f549325e1c63e586526d2bdc4544;hp=59c3e78d9d41cb84d6c9f66c8c9f78b13c483eb5;hb=8446e3d316a469f22403f8767e48aac04c8ab79a;hpb=3d14e9d827c8fb53193d7534e3d13ef5aa288660 diff --git a/IPPay.pm b/IPPay.pm index 59c3e78..963ba5b 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.06'; +$VERSION = '0.07_01'; $VERSION = eval $VERSION; # modperlstyle: convert the string into a number $DEBUG = 0; @@ -28,6 +28,7 @@ sub _info { 'Post Authorization', 'Void', 'Credit', + 'Reverse Authorization', ], 'ECHECK' => [ 'Normal Authorization', @@ -89,6 +90,7 @@ sub map_fields { ( 'normal authorization' => 'SALE', 'authorization only' => 'AUTHONLY', 'post authorization' => 'CAPT', + 'reverse authorization' => 'REVERSEAUTH', 'void' => 'VOID', 'credit' => 'CREDIT', ); @@ -189,6 +191,8 @@ sub submit { }elsif ( $action eq 'post authorization' && $type eq 'CC') { push @required_fields, qw( order_number ); + }elsif ( $action eq 'reverse authorization' && $type eq 'CC') { + push @required_fields, qw( order_number card_number expiration amount ); }elsif ( $action eq 'void') { push @required_fields, qw( order_number amount ); @@ -521,6 +525,7 @@ The following actions are valid normal authorization authorization only + reverse authorization post authorization credit void @@ -593,9 +598,13 @@ Business::OnlinePayment::IPPay uses IPPay XML Product Specifications version See http://www.ippay.com/ for more information. -=head1 AUTHOR +=head1 AUTHORS -Jeff Finucane, ippay@weasellips.com +Original author: Jeff Finucane + +Current maintainer: Ivan Kohler + +Reverse Authorization patch from dougforpres =head1 SEE ALSO