Author...orCodes(3pm)

πŸ“¦
version 3.23 Β· 2 versions
  • 3.23 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 3.23 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

Business::OnlinePayment::AuthorizeNet::AIM::ErrorCodes β€” the girlies' favourite easy lookup of Authorize.Net's AIM result reason codes πŸ’…

(it's a 3pm page, meaning it's Perl module documentation, in case you were wondering 🫢)


🌸 SYNOPSIS 🌸

okay so you have two whole ways to do this, pick your fighter:

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

or, if you're feeling like an import-an-array kind of girl:

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

πŸ¦‹ DESCRIPTION πŸ¦‹

This module exists to lookup the textual descriptions of errors returned by Authorize.Net's AIM submission method. no cap, that's literally its whole job. 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>). 😭 like the gateway is giving you crumbs and the guide is giving you the full meal.

πŸŽ€ 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.

so like:

  • βœ… success β†’ hashref with reason and notes (notes can be empty, it's fine, it's just quiet)
  • πŸ’€ no match β†’ undef

πŸ‘‘ AUTHOR πŸ‘‘

Thomas Sibley <trs@bestpractical.com>


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.


🫢 and that's the whole page bestie, go forth and look up your error codes, you're gonna slay

okay bye this was documented with perl v5.34.0 and dated 2022-06-30, mwah πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from