Business::OnlinePayment::Litle::ErrorCodes - Map given codes with more verbose messages
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 };
This module provides a method to lookup extended codes to Litle & Co API responses
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.
reason
status
notes
Jason (Jayce^) Hall <jayce@lug-nut.com>
Thomas Sibley <trs@bestpractical.com> wrote the AIM module. This follows the same pattern
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.
To install Business::OnlinePayment::Litle, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::OnlinePayment::Litle
CPAN shell
perl -MCPAN -e shell install Business::OnlinePayment::Litle
For more information on module installation, please visit the detailed CPAN module installation guide.