diff options
author | mark <mark> | 2010-03-19 07:25:07 +0000 |
---|---|---|
committer | mark <mark> | 2010-03-19 07:25:07 +0000 |
commit | a1a70f1e5b213a6e235a97d22cdf362555780832 (patch) | |
tree | be5fbed54840819611e321745e8efcb3dae3a2db /lib/Business | |
parent | 0184d0a8e184711d27869a244f403322e29f8843 (diff) |
Add "credit" as a synonym for "void"
Diffstat (limited to 'lib/Business')
-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, } } |