X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=OnlinePayment.pm;h=12b3899c0870e690ccccb6fdc237860eaf15f913;hb=07035c2b300af85aacf04c04167a70927bc0ce92;hp=8c421e18a8aea446398bd480ae80694c2dfcb9b6;hpb=ced13010728e3655764cd799b62c43b697e5ad11;p=Business-OnlinePayment.git diff --git a/OnlinePayment.pm b/OnlinePayment.pm index 8c421e1..12b3899 100644 --- a/OnlinePayment.pm +++ b/OnlinePayment.pm @@ -6,7 +6,7 @@ use Carp; require 5.005; -$VERSION = '3.02_02'; +$VERSION = '3.03_01'; $VERSION = eval $VERSION; # modperlstyle: convert the string into a number # Remember subclasses we have "wrapped" submit() with _pre_submit() @@ -56,10 +56,10 @@ sub _info { }, 'supported_actions' => sub { my( $class, $v ) = @_; - return $v if ref($v) eq 'HASH'; + return %$v if ref($v) eq 'HASH'; $v = [ $v ] unless ref($v); my $types = $class->info('supported_types') || {}; - { map { $_ => $v } keys %$types }; + ( map { $_ => $v } keys %$types ); }, ); @@ -270,7 +270,7 @@ Business::OnlinePayment - Perl extension for online payment processing type => 'Visa', amount => '49.95', card_number => '1234123412341238', - expiration => '0100', + expiration => '06/15', name => 'John Q Doe', ); $transaction->submit(); @@ -345,6 +345,8 @@ What action being taken by this transaction. Currently available are: =item Post Authorization +=item Reverse Authorization + =item Void =item Credit @@ -499,7 +501,7 @@ Credit card number. =item expiration -Credit card expiration. +Credit card expiration, MM/YY. =item cvv2 @@ -633,8 +635,9 @@ Submit the transaction to the processor for completion =head2 is_success() -Returns true if the transaction was submitted successfully, false if -it failed (or undef if it has not been submitted yet). +Returns true if the transaction was approved by the gateway, false if +it was submitted but not approved, or undef if it has not been +submitted yet. =head2 error_message() @@ -774,7 +777,7 @@ Phil Lobbes Ephil at perkpartners dot comE Copyright (c) 1999-2004 Jason Kohles Copyright (c) 2004 Ivan Kohler -Copyright (c) 2007-2011 Freeside Internet Services, Inc. +Copyright (c) 2007-2012 Freeside Internet Services, Inc. All rights reserved.