Man pages sections > man3 > Business::OnlinePayment::AuthorizeNet::AIM::ErrorCodes

Business::OnlinePayment::AuthorizeNet::AIM::ErrorCodes - Easy lookup of

AuthorizeNet::AIM::ErrorCodes(3pm) User Contributed Perl Documentation AuthorizeNet::AIM::ErrorCodes(3pm)


Business::OnlinePayment::AuthorizeNet::AIM::ErrorCodes - Easy lookup of Authorize.Net's AIM result reason codes


    use Business::OnlinePayment::AuthorizeNet::AIM::ErrorCodes 'lookup';
    my $result = lookup( $result_code );
    # $result = { reason => ..., notes => ... };
    use Business::OnlinePayment::AuthorizeNet::AIM::ErrorCodes '%ERRORS';
    my $result = $ERRORS{ $result_code };


This module exists to lookup the textual descriptions of errors returned by Authorize.Net's AIM submission method. The error messages returned in the gateway's response are often not as useful as those in Authorize.Net's AIM guide (<>).

lookup CODE

Takes the result code returned by Authorize.Net's AIM gateway. Returns a hashref containing two keys, "reason" and "notes" (which may be empty) if the lookup is successful, undef otherwise.


Thomas Sibley <> Copyright (c) 2008.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.3 or, at your option, any later version of Perl 5 you may have available.
2015-12-21 perl v5.22.1