File Coverage

blib/lib/WebService/PayPal/PaymentsAdvanced/Response/FromRedirect.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package WebService::PayPal::PaymentsAdvanced::Response::FromRedirect;
2              
3 6     6   49 use Moo;
  6         14  
  6         43  
4              
5 6     6   1960 use namespace::autoclean;
  6         16  
  6         41  
6              
7             our $VERSION = '0.000026';
8              
9             with(
10             'WebService::PayPal::PaymentsAdvanced::Role::HasParams',
11             'WebService::PayPal::PaymentsAdvanced::Role::HasMessage',
12             );
13              
14             1;
15              
16             =pod
17              
18             =head1 NAME
19              
20             WebService::PayPal::PaymentsAdvanced::Response::FromRedirect - Response object for generated via HashRef of GET params
21              
22             =head1 VERSION
23              
24             version 0.000026
25              
26             =head1 DESCRIPTION
27              
28             This module provides an interface for extracting returned params from an
29             L<HTTP::Response> object. You won't need to this module directly if you are
30             using L<PayPal::PaymentsAdvanced/create_secure_token>.
31              
32             Throws a L<WebService::PayPal::PaymentsAdvanced::Error::HTTP> exception if the
33             HTTP request was not successful.
34              
35             =head1 OBJECT INSTANTIATION
36              
37             The following parameters can be supplied to C<new()> when creating a new object.
38              
39             =head2 Required Parameters
40              
41             =head3 params
42              
43             Returns a C<HashRef> of parameters which have been returned from PayPal via a
44             redirect or a silent POST.
45              
46             =head2 Methods
47              
48             =head3 params
49              
50             Returns the same C<HashRef> of parameters which was initially provided to the
51             C<new> method.
52              
53             =head2 message
54              
55             Returns the value of the C<RESPMSG> param.
56              
57             =head1 AUTHOR
58              
59             Olaf Alders <olaf@wundercounter.com>
60              
61             =head1 COPYRIGHT AND LICENSE
62              
63             This software is copyright (c) 2020 by MaxMind, Inc.
64              
65             This is free software; you can redistribute it and/or modify it under
66             the same terms as the Perl 5 programming language system itself.
67              
68             =cut
69              
70             __END__
71             # ABSTRACT: Response object for generated via HashRef of GET params
72