WebService::PayPal::PaymentsAdvanced::Error::IPVerification - A Payments Advanced IP verification error
version 0.000022
use Try::Tiny; use WebService::PayPal::PaymentsAdvanced; my $payments = WebService::PayPal::PaymentsAdvanced->new(...); my $redirect_response; my $uri; try { $redirect_response = $payments->get_response_from_redirect( ip_address => $ip, params => $params, ); } catch { die $_ unless blessed $_; if ( $_->isa( 'WebService::PayPal::PaymentsAdvanced::Error::IPVerification') ) { log_fraud( message => $_->message, fraudster_ip_address => $_->ip_address, ); } # handle other exceptions };
This class represents an error in validating the ip_address which has posted back a PayPal return or silent POST url. It will only occur if you provide an IP address to the "get_response_from_redirect" in WebService::PayPal::PaymentsAdvanced or "get_response_from_silent_post" in WebService::PayPal::PaymentsAdvanced
It extends Throwable::Error and adds two attributes of its own. The message attribute (inherited from Throwable::Error) will contain the error message which was parsed out of the content of the HTML.
The $error->message(), and $error->stack_trace() methods are inherited from Throwable::Error.
$error->message()
$error->stack_trace()
Returns the IP address of the request which was made to your application.
Returns a HashRef of params which was received from to PayPal.
HashRef
Bugs may be submitted through https://github.com/maxmind/webservice-paypal-paymentsadvanced/issues.
Olaf Alders <olaf@wundercounter.com>
This software is copyright (c) 2017 by MaxMind, Inc..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install WebService::PayPal::PaymentsAdvanced, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::PayPal::PaymentsAdvanced
CPAN shell
perl -MCPAN -e shell install WebService::PayPal::PaymentsAdvanced
For more information on module installation, please visit the detailed CPAN module installation guide.