PaymentsAdvanced/Response/FromRedirect.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 11 / 11 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« PaymentsAdvanced/Response/Credit.pm ↑ Summary PaymentsAdvanced/Response/FromSilentPOST/CreditCard.pm »
1 package WebService::PayPal::PaymentsAdvanced::Response::FromRedirect;
2  
3 6 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 6 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 6 our $VERSION = '0.000028';
8  
9 6 with(
10 'WebService::PayPal::PaymentsAdvanced::Role::HasParams',
11 'WebService::PayPal::PaymentsAdvanced::Role::HasMessage',
12 );
13  
14 6 1;
15  
16 =pod
17  
18 =encoding UTF-8
19  
20 =head1 NAME
21  
22 WebService::PayPal::PaymentsAdvanced::Response::FromRedirect - Response object for generated via HashRef of GET params
23  
24 =head1 VERSION
25  
26 version 0.000028
27  
28 =head1 DESCRIPTION
29  
30 This module provides an interface for extracting returned params from an
31 L<HTTP::Response> object. You won't need to this module directly if you are
32 using L<PayPal::PaymentsAdvanced/create_secure_token>.
33  
34 Throws a L<WebService::PayPal::PaymentsAdvanced::Error::HTTP> exception if the
35 HTTP request was not successful.
36  
37 =head1 OBJECT INSTANTIATION
38  
39 The following parameters can be supplied to C<new()> when creating a new object.
40  
41 =head2 Required Parameters
42  
43 =head3 params
44  
45 Returns a C<HashRef> of parameters which have been returned from PayPal via a
46 redirect or a silent POST.
47  
48 =head2 Methods
49  
50 =head3 params
51  
52 Returns the same C<HashRef> of parameters which was initially provided to the
53 C<new> method.
54  
55 =head2 message
56  
57 Returns the value of the C<RESPMSG> param.
58  
59 =head1 SUPPORT
60  
61 Bugs may be submitted through L<https://github.com/maxmind/webservice-paypal-paymentsadvanced/issues>.
62  
63 =head1 AUTHOR
64  
65 Olaf Alders <olaf@wundercounter.com>
66  
67 =head1 COPYRIGHT AND LICENSE
68  
69 This software is copyright (c) 2022 by MaxMind, Inc.
70  
71 This is free software; you can redistribute it and/or modify it under
72 the same terms as the Perl 5 programming language system itself.
73  
74 =cut
75  
76 __END__
« PaymentsAdvanced/Response/Credit.pm ↑ Summary PaymentsAdvanced/Response/FromSilentPOST/CreditCard.pm »