NAME
Business::OnlinePayment::Litle::ErrorCodes - Map given codes with more verbose messages
SYNOPSIS
use Business::OnlinePayment::Litle::ErrorCodes 'lookup';
my $result = lookup( $result_code );
# $result = { reason => ..., notes => ..., status => ... };
or
use Business::OnlinePayment::Litle::ErrorCodes '%ERRORS';
my $result = $ERRORS{ $result_code };
DESCRIPTION
This module provides a method to lookup extended codes to Litle & Co API responses
lookup CODE
Takes the result code returned in your Litle response. Returns a hashref containing three keys, reason
, status
, and notes
(which may be empty) if the lookup is successful, undef otherwise. This allows for more descriptive error messages, as well as categorization into hard and soft failure types.
AUTHOR
Jason (Jayce^) Hall <jayce@lug-nut.com>
AKNOWLEDGEMENTS
Thomas Sibley <trs@bestpractical.com> wrote the AIM module. This follows the same pattern
COPYRIGHT AND LICENSE
Copyright (c) 2010.
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.