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


Business-OnlinePayment-AuthorizeNet-AIM-ErrorCodes documentation  | view source Contained in the Business-OnlinePayment-AuthorizeNet-AIM-ErrorCodes distribution.

Index


NAME

Top

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

SYNOPSIS

Top

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

or

    use Business::OnlinePayment::AuthorizeNet::AIM::ErrorCodes '%ERRORS';
    my $result = $ERRORS{ $result_code };

DESCRIPTION

Top

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 (http://www.authorize.net/support/AIM_guide.pdf).

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.

AUTHOR

Top

Thomas Sibley <trs@bestpractical.com>

COPYRIGHT AND LICENSE

Top


Business-OnlinePayment-AuthorizeNet-AIM-ErrorCodes documentation  | view source Contained in the Business-OnlinePayment-AuthorizeNet-AIM-ErrorCodes distribution.