diff options
author | jeff <jeff> | 2007-04-08 00:03:13 +0000 |
---|---|---|
committer | jeff <jeff> | 2007-04-08 00:03:13 +0000 |
commit | ba882bcb4971d80b310f08543675ba469d548e7a (patch) | |
tree | d4c1bdf22d806dc32c285a26c1a14aed38c3dcb3 /AuthorizeNet.pm | |
parent | 4c2d2e639d14092cdd13301565db5facf42ef9a8 (diff) |
add bank account type handling
Diffstat (limited to 'AuthorizeNet.pm')
-rw-r--r-- | AuthorizeNet.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/AuthorizeNet.pm b/AuthorizeNet.pm index 54f1514..1f787ca 100644 --- a/AuthorizeNet.pm +++ b/AuthorizeNet.pm @@ -50,6 +50,15 @@ sub map_fields { $content{'type'} = $types{lc($content{'type'})} || $content{'type'}; $self->transaction_type($content{'type'}); + # ACCOUNT TYPE MAP + my %account_types = ('personal checking' => 'CHECKING', + 'personal savings' => 'SAVINGS', + 'business checking' => 'CHECKING', + 'business savings' => 'SAVINGS', + ); + $content{'account_type'} = $account_types{lc($content{'account_type'})} + || $content{'account_type'}; + $content{'referer'} = defined( $content{'referer'} ) ? make_headers( 'Referer' => $content{'referer'} ) : ""; |