diff options
Diffstat (limited to 'lib/Business/OnlinePayment')
-rw-r--r-- | lib/Business/OnlinePayment/Jety.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Business/OnlinePayment/Jety.pm b/lib/Business/OnlinePayment/Jety.pm index 8d563d8..a10c64e 100644 --- a/lib/Business/OnlinePayment/Jety.pm +++ b/lib/Business/OnlinePayment/Jety.pm @@ -10,7 +10,7 @@ use Date::Format; use Tie::IxHash; @ISA = qw(Business::OnlinePayment::HTTPS); -$VERSION = '0.07'; +$VERSION = '0.08'; $me = 'Business::OnlinePayment::Jety'; $DEBUG = 0; @@ -18,6 +18,7 @@ $DEBUG = 0; my %trans_type = ( 'normal authorization' => 'echeck', 'void' => 'ereturn', + 'credit' => 'ereturn', ); my %map = ( @@ -54,6 +55,7 @@ my %map = ( 'amount' => sub { my %c = @_; sprintf("%.02f",$c{'amount'}) }, ], ); +$map{'credit'} = $map{'void'}; my %defaults = ( # using the B:OP names 'phone' => '111-111-1111', @@ -90,6 +92,7 @@ my %required = ( amount ) ], ); +$required{'credit'} = $required{'void'}; sub _info { { @@ -98,7 +101,7 @@ sub _info { gateway_url => 'http://www.jetypay.com', module_version => $VERSION, supported_types => [ 'ECHECK' ], - supported_actions => [ 'Normal Authorization', 'Void' ], + supported_actions => [ 'Normal Authorization', 'Void', 'Credit' ], ECHECK_void_requires_account => 1, } } |