Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

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

Author

       Thomas Sibley <trs@bestpractical.com>

Description

       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>).

   lookupCODE
       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.

Name

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

Synopsis

           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 };

See Also