| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Business::OnlinePayment::Iridium::Action::CrossReferenceTransaction; |
|
2
|
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
798
|
use Moose; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
with 'Business::OnlinePayment::Iridium::Action'; |
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# PODNAME: Business::OnlinePayment::Iridium::Action::CrossReferenceTransaction |
|
8
|
|
|
|
|
|
|
# ABSTRACT: Cross reference for repeast transactions etc. |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has 'Amount' => ( |
|
11
|
|
|
|
|
|
|
isa => 'Int', |
|
12
|
|
|
|
|
|
|
is => 'rw', required => '1' |
|
13
|
|
|
|
|
|
|
); |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
has 'OrderID' => ( |
|
16
|
|
|
|
|
|
|
isa => 'Str', |
|
17
|
|
|
|
|
|
|
is => 'rw', required => '1' |
|
18
|
|
|
|
|
|
|
); |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
has 'OrderDescription' => ( |
|
21
|
|
|
|
|
|
|
isa => 'Str', |
|
22
|
|
|
|
|
|
|
is => 'rw', required => '0' |
|
23
|
|
|
|
|
|
|
); |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
has 'TransactionType' => ( |
|
26
|
|
|
|
|
|
|
isa => 'Str', |
|
27
|
|
|
|
|
|
|
is => 'rw', required => '1' |
|
28
|
|
|
|
|
|
|
); |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
has 'CrossReference' => ( |
|
31
|
|
|
|
|
|
|
isa => 'Int', |
|
32
|
|
|
|
|
|
|
is => 'rw', required => '1' |
|
33
|
|
|
|
|
|
|
); |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
has 'CardName' => ( |
|
36
|
|
|
|
|
|
|
isa => 'Str', |
|
37
|
|
|
|
|
|
|
is => 'rw', required => '1' |
|
38
|
|
|
|
|
|
|
); |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
has 'CardNumber' => ( |
|
41
|
|
|
|
|
|
|
isa => 'Int', |
|
42
|
|
|
|
|
|
|
is => 'rw', required => '1' |
|
43
|
|
|
|
|
|
|
); |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
has 'ExpireMonth' => ( |
|
46
|
|
|
|
|
|
|
isa => 'Int', |
|
47
|
|
|
|
|
|
|
is => 'rw', required => '1' |
|
48
|
|
|
|
|
|
|
); |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
has 'ExpireYear' => ( |
|
51
|
|
|
|
|
|
|
isa => 'Int', |
|
52
|
|
|
|
|
|
|
is => 'rw', required => '1' |
|
53
|
|
|
|
|
|
|
); |
|
54
|
|
|
|
|
|
|
|
|
55
|
0
|
|
|
0
|
|
|
sub _build__type { return 'CrossReferenceTransaction' } |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
sub template { |
|
59
|
0
|
|
|
0
|
1
|
|
return <<DATA; |
|
60
|
|
|
|
|
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
61
|
|
|
|
|
|
|
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
62
|
|
|
|
|
|
|
xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
|
63
|
|
|
|
|
|
|
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> |
|
64
|
|
|
|
|
|
|
<soap:Body> |
|
65
|
|
|
|
|
|
|
<CrossReferenceTransaction xmlns="https://www.thepaymentgateway.net/"> |
|
66
|
|
|
|
|
|
|
<PaymentMessage> |
|
67
|
|
|
|
|
|
|
<MerchantAuthentication MerchantID="[% MerchantID %]" Password="[% Password %]" /> |
|
68
|
|
|
|
|
|
|
<TransactionDetails Amount="[% Amount %]" CurrencyCode="[% CurrencyCode %]"> |
|
69
|
|
|
|
|
|
|
<MessageDetails TransactionType="[% TransactionType %]" NewTransaction="FALSE" |
|
70
|
|
|
|
|
|
|
CrossReference="[% CrossReference %]" /> |
|
71
|
|
|
|
|
|
|
<OrderID>[% OrderID %]</OrderID> |
|
72
|
|
|
|
|
|
|
<OrderDescription>[% OrderDescription %]</OrderDescription> |
|
73
|
|
|
|
|
|
|
</TransactionDetails> |
|
74
|
|
|
|
|
|
|
<PassOutData>[% PassOutData %]</PassOutData> |
|
75
|
|
|
|
|
|
|
</PaymentMessage> |
|
76
|
|
|
|
|
|
|
</CrossReferenceTransaction> |
|
77
|
|
|
|
|
|
|
</soap:Body> |
|
78
|
|
|
|
|
|
|
</soap:Envelope> |
|
79
|
|
|
|
|
|
|
DATA |
|
80
|
|
|
|
|
|
|
} |
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
1; |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
__END__ |
|
85
|
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=pod |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=encoding UTF-8 |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head1 NAME |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
Business::OnlinePayment::Iridium::Action::CrossReferenceTransaction - Cross reference for repeast transactions etc. |
|
93
|
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=head1 VERSION |
|
95
|
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
version 1.01 |
|
97
|
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=head2 template |
|
99
|
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
SOAP template to use to send to PayVector / Iridium |
|
101
|
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=head1 AUTHOR |
|
103
|
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
[ 'Gavin Henry <ghenry@surevoip.co.uk>', 'Wallace Reis <reis.wallace@gmail.com>' ] |
|
105
|
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
107
|
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
This software is copyright (c) 2017 by [ 'Gavin Henry', 'Wallace Reis' ]. |
|
109
|
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
|
111
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
|
112
|
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
=cut |