| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package WebService::PayPal::PaymentsAdvanced::Mocker::PayflowLink; |
|
2
|
|
|
|
|
|
|
|
|
3
|
6
|
|
|
6
|
|
2865
|
use Mojolicious::Lite; |
|
|
6
|
|
|
|
|
2660720
|
|
|
|
6
|
|
|
|
|
47
|
|
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.000026'; |
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# A GET request will be a request for the hosted form. |
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
get '/' => sub { |
|
10
|
|
|
|
|
|
|
my $c = shift; |
|
11
|
|
|
|
|
|
|
$c->render( text => 'Hosted form would be here' ); |
|
12
|
|
|
|
|
|
|
}; |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub to_app { |
|
15
|
|
|
|
|
|
|
## no critic (RequireExplicitInclusion) |
|
16
|
29
|
|
|
29
|
1
|
146
|
app->secrets( ['Tempus fugit'] ); |
|
17
|
29
|
|
|
|
|
476
|
app->start; |
|
18
|
|
|
|
|
|
|
} |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=pod |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 NAME |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
WebService::PayPal::PaymentsAdvanced::Mocker::PayflowLink - A simple app to enable easy Payflow Link (hosted form) mocking |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 VERSION |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
version 0.000026 |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
A simple app to enable easy Payflow Link (hosted form) mocking. |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head2 to_app |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
use WebService::PayPal::PaymentsAdvanced::Mocker::PayflowLink; |
|
39
|
|
|
|
|
|
|
my $app = WebService::PayPal::PaymentsAdvanced::Mocker::PayflowLink->to_app; |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
If you require a Plack app to be returned, you'll need to give Mojo the correct |
|
42
|
|
|
|
|
|
|
hint: |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
use WebService::PayPal::PaymentsAdvanced::Mocker::PayflowLink; |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
local $ENV{PLACK_ENV} = 'development'; # |
|
47
|
|
|
|
|
|
|
my $app = WebService::PayPal::PaymentsAdvanced::Mocker::PayflowLink->to_app; |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 AUTHOR |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
Olaf Alders <olaf@wundercounter.com> |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
This software is copyright (c) 2020 by MaxMind, Inc. |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
|
58
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=cut |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
__END__ |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
# ABSTRACT: A simple app to enable easy Payflow Link (hosted form) mocking |
|
65
|
|
|
|
|
|
|
|