Business::OnlinePayment::Litle::ErrorCodes - Map given codes with more verbose messages


Business-OnlinePayment-Litle documentation  | view source Contained in the Business-OnlinePayment-Litle distribution.

Index


NAME

Top

Business::OnlinePayment::Litle::ErrorCodes - Map given codes with more verbose messages

SYNOPSIS

Top

    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

Top

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

Top

Jason (Jayce^) Hall <jayce@lug-nut.com>

AKNOWLEDGEMENTS

Top

Thomas Sibley <trs@bestpractical.com> wrote the AIM module. This follows the same pattern

COPYRIGHT AND LICENSE

Top


Business-OnlinePayment-Litle documentation  | view source Contained in the Business-OnlinePayment-Litle distribution.