logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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