File Coverage

blib/lib/Business/OnlinePayment/Iridium/Action/ThreeDSecureAuthentication.pm
Criterion Covered Total %
statement 3 5 60.0
branch n/a
condition n/a
subroutine 1 3 33.3
pod 1 1 100.0
total 5 9 55.5


line stmt bran cond sub pod time code
1             package Business::OnlinePayment::Iridium::Action::ThreeDSecureAuthentication;
2              
3 1     1   648 use Moose;
  1         3  
  1         10  
4              
5             with 'Business::OnlinePayment::Iridium::Action';
6              
7             # PODNAME: Business::OnlinePayment::Iridium::Action::ThreeDSecureAuthentication
8             # ABSTRACT: Handle 3DSecure
9              
10             has 'CrossReference' => (
11             isa => 'Int',
12             is => 'rw', required => '1'
13             );
14              
15             has 'PaRES' => (
16             isa => 'Str',
17             is => 'rw', required => '1'
18             );
19              
20 0     0     sub _build__type { return 'ThreeDSecureAuthentication' }
21              
22              
23             sub template {
24 0     0 1   return <<DATA;
25             <?xml version="1.0" encoding="utf-8"?>
26             <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
27             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
28             xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
29             <soap:Body>
30             <ThreeDSecureAuthentication xmlns="https://www.thepaymentgateway.net/">
31             <ThreeDSecureMessage>
32             <MerchantAuthentication MerchantID="[% MerchantID %]" Password="[% Password %]" />
33             <ThreeDSecureInputData CrossReference="[% CrossReference %]">
34             <PaRES>
35             [% PaRES %]
36             </PaRES>
37             </ThreeDSecureInputData>
38             <PassOutData>[% PassOutData %]</PassOutData>
39             </ThreeDSecureMessage>
40             </ThreeDSecureAuthentication>
41             </soap:Body>
42             </soap:Envelope>
43             DATA
44             }
45              
46             1;
47              
48             __END__
49              
50             =pod
51              
52             =encoding UTF-8
53              
54             =head1 NAME
55              
56             Business::OnlinePayment::Iridium::Action::ThreeDSecureAuthentication - Handle 3DSecure
57              
58             =head1 VERSION
59              
60             version 1.03
61              
62             =head2 template
63              
64             SOAP template to use to send to PayVector / Iridium
65              
66             =head1 AUTHOR
67              
68             [ 'Gavin Henry <ghenry@surevoip.co.uk>', 'Wallace Reis <reis.wallace@gmail.com>' ]
69              
70             =head1 COPYRIGHT AND LICENSE
71              
72             This software is copyright (c) 2017 by [ 'Gavin Henry', 'Wallace Reis' ].
73              
74             This is free software; you can redistribute it and/or modify it under
75             the same terms as the Perl 5 programming language system itself.
76              
77             =cut