X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=AuthorizeNet%2FAIM.pm;fp=AuthorizeNet%2FAIM.pm;h=ed996a360271411bd50c844a4b3db97a0e680966;hb=8946b6f68bce2003d760233a3ed0721287dfcb86;hp=0039502b9cf9034a231984a6b29136fa393b3e3e;hpb=f7545ec5b072a46f6d08e4bf19bc5d1edb25ce94;p=Business-OnlinePayment-AuthorizeNet.git diff --git a/AuthorizeNet/AIM.pm b/AuthorizeNet/AIM.pm index 0039502..ed996a3 100644 --- a/AuthorizeNet/AIM.pm +++ b/AuthorizeNet/AIM.pm @@ -35,7 +35,7 @@ sub map_fields { 'post authorization' => 'PRIOR_AUTH_CAPTURE', 'void' => 'VOID', ); - $content{'action'} = $actions{lc($content{'action'})} || $content{'action'}; + $content{'action'} = $actions{lc($content{'action'} || '')} || $content{'action'}; # TYPE MAP my %types = ('visa' => 'CC', @@ -44,7 +44,7 @@ sub map_fields { 'discover' => 'CC', 'check' => 'ECHECK', ); - $content{'type'} = $types{lc($content{'type'})} || $content{'type'}; + $content{'type'} = $types{lc($content{'type'} || '')} || $content{'type'}; $self->transaction_type($content{'type'}); # ACCOUNT TYPE MAP @@ -53,7 +53,7 @@ sub map_fields { 'business checking' => 'CHECKING', 'business savings' => 'SAVINGS', ); - $content{'account_type'} = $account_types{lc($content{'account_type'})} + $content{'account_type'} = $account_types{lc($content{'account_type'} || '')} || $content{'account_type'}; if (length $content{'password'} == 15) {