line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Business::OnlinePayment::PPIPayMover::PayerAuthenticationResponse;
|
2
|
|
|
|
|
|
|
|
3
|
6
|
|
|
6
|
|
35
|
use strict;
|
|
6
|
|
|
|
|
8
|
|
|
6
|
|
|
|
|
212
|
|
4
|
6
|
|
|
6
|
|
32
|
use vars qw(@ISA);
|
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
234
|
|
5
|
6
|
|
|
6
|
|
33
|
use Business::OnlinePayment::PPIPayMover::TransactionResponse;
|
|
6
|
|
|
|
|
8
|
|
|
6
|
|
|
|
|
285
|
|
6
|
6
|
|
|
6
|
|
32
|
use Business::OnlinePayment::PPIPayMover::constants;
|
|
6
|
|
|
|
|
8
|
|
|
6
|
|
|
|
|
8451
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
@ISA = qw(Business::OnlinePayment::PPIPayMover::TransactionResponse);
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub new {
|
11
|
0
|
|
|
0
|
0
|
|
my $class = shift;
|
12
|
0
|
|
|
|
|
|
my @param = @_;
|
13
|
0
|
|
|
|
|
|
my $paramNo = @param;
|
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
my $InString = shift;
|
16
|
0
|
|
|
|
|
|
my $prefix = "";
|
17
|
|
|
|
|
|
|
|
18
|
0
|
0
|
|
|
|
|
if( $paramNo == 2){
|
19
|
0
|
|
|
|
|
|
$prefix = shift;
|
20
|
|
|
|
|
|
|
}
|
21
|
0
|
|
|
|
|
|
my $self = $class->SUPER::new($InString,$prefix);
|
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
|
$self->{strAuthenticationTransactionId} = "";
|
24
|
0
|
|
|
|
|
|
$self->{strLookupPayload} = "";
|
25
|
0
|
|
|
|
|
|
$self->{strHiddenFields} = "";
|
26
|
0
|
|
|
|
|
|
$self->{strOrderId} = "";
|
27
|
0
|
|
|
|
|
|
$self->{strAuthenticationURL} = "";
|
28
|
0
|
|
|
|
|
|
$self->{strCavv} = "";
|
29
|
0
|
|
|
|
|
|
$self->{strXID} = "";
|
30
|
0
|
|
|
|
|
|
$self->{strStatus} = "";
|
31
|
0
|
|
|
|
|
|
$self->{strTransactionConditionCode} = "";
|
32
|
0
|
0
|
0
|
|
|
|
if ($self->{iResponseCode} == TRANSACTION_SERVER_ERROR || $self->{iResponseCode} == INVALID_VERSION) {
|
33
|
0
|
|
|
|
|
|
return $self;
|
34
|
|
|
|
|
|
|
}
|
35
|
0
|
0
|
0
|
|
|
|
if (!($$InString) && !($self->{iResponseCode} == SUCCESSFUL_TRANSACTION)) {
|
36
|
0
|
|
|
|
|
|
return $self;
|
37
|
|
|
|
|
|
|
}
|
38
|
|
|
|
|
|
|
|
39
|
0
|
|
|
|
|
|
my @temp = split(/\n/, $$InString);
|
40
|
0
|
|
|
|
|
|
my $size = @temp;
|
41
|
0
|
0
|
|
|
|
|
if ($size < 10) {
|
42
|
0
|
|
|
|
|
|
$self->{strError} .= "input string is in wrong format";
|
43
|
0
|
|
|
|
|
|
$self->{iRetVal} = 0;
|
44
|
0
|
|
|
|
|
|
return $self;
|
45
|
|
|
|
|
|
|
}
|
46
|
|
|
|
|
|
|
#splice(@temp, 0, 4);
|
47
|
0
|
|
|
|
|
|
my $name;
|
48
|
|
|
|
|
|
|
my $value;
|
49
|
0
|
|
|
|
|
|
foreach (@temp) {
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
# Anything after the first = is part
|
52
|
|
|
|
|
|
|
# of the value (including other ='s)
|
53
|
0
|
|
|
|
|
|
($name, $value) = split(/=/, $_, 2);
|
54
|
|
|
|
|
|
|
|
55
|
0
|
0
|
|
|
|
|
if ($name eq $prefix."authentication_transaction_id") {
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
56
|
0
|
|
|
|
|
|
$self->{strAuthenticationTransactionId} = $value;
|
57
|
|
|
|
|
|
|
}
|
58
|
|
|
|
|
|
|
elsif ($name eq $prefix."lookup_payload") {
|
59
|
0
|
|
|
|
|
|
$self->{strLookupPayload} = $value;
|
60
|
|
|
|
|
|
|
}
|
61
|
|
|
|
|
|
|
elsif ($name eq $prefix."hidden_fields") {
|
62
|
0
|
|
|
|
|
|
$self->{strHiddenFields} = $value;
|
63
|
|
|
|
|
|
|
}
|
64
|
|
|
|
|
|
|
elsif ($name eq $prefix."order_id") {
|
65
|
0
|
|
|
|
|
|
$self->{strOrderId} = $value;
|
66
|
|
|
|
|
|
|
}
|
67
|
|
|
|
|
|
|
elsif ($name eq $prefix."authentication_url") {
|
68
|
0
|
|
|
|
|
|
$self->{strAuthenticationURL} = $value;
|
69
|
|
|
|
|
|
|
}
|
70
|
|
|
|
|
|
|
elsif ($name eq $prefix."cavv") {
|
71
|
0
|
|
|
|
|
|
$self->{strCavv } = $value;
|
72
|
|
|
|
|
|
|
}
|
73
|
|
|
|
|
|
|
elsif ($name eq $prefix."x_id") {
|
74
|
0
|
|
|
|
|
|
$self->{strXID} = $value;
|
75
|
|
|
|
|
|
|
}
|
76
|
|
|
|
|
|
|
elsif ($name eq $prefix."status") {
|
77
|
0
|
|
|
|
|
|
$self->{strStatus} = $value;
|
78
|
|
|
|
|
|
|
}
|
79
|
|
|
|
|
|
|
elsif ($name eq $prefix."transaction_condition_code") {
|
80
|
0
|
|
|
|
|
|
$self->{strTransactionConditionCode} = $value;
|
81
|
|
|
|
|
|
|
}
|
82
|
|
|
|
|
|
|
else {
|
83
|
0
|
|
|
|
|
|
$self->{strError} .= "Invalid data name: ";
|
84
|
|
|
|
|
|
|
}
|
85
|
|
|
|
|
|
|
}
|
86
|
0
|
|
|
|
|
|
return $self;
|
87
|
|
|
|
|
|
|
}
|
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
sub GetAuthenticationTransactionId
|
91
|
|
|
|
|
|
|
{
|
92
|
0
|
|
|
0
|
0
|
|
my $self = shift;
|
93
|
0
|
|
|
|
|
|
$self->{strAuthenticationTransactionId};
|
94
|
|
|
|
|
|
|
}
|
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
sub GetLookupPayload
|
97
|
|
|
|
|
|
|
{
|
98
|
0
|
|
|
0
|
0
|
|
my $self = shift;
|
99
|
0
|
|
|
|
|
|
$self->{strLookupPayload};
|
100
|
|
|
|
|
|
|
}
|
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
sub GetHiddenFields
|
103
|
|
|
|
|
|
|
{
|
104
|
0
|
|
|
0
|
0
|
|
my $self = shift;
|
105
|
0
|
|
|
|
|
|
$self->{strHiddenFields};
|
106
|
|
|
|
|
|
|
}
|
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
sub GetOrderId
|
109
|
|
|
|
|
|
|
{
|
110
|
0
|
|
|
0
|
0
|
|
my $self = shift;
|
111
|
0
|
|
|
|
|
|
$self->{strOrderId};
|
112
|
|
|
|
|
|
|
}
|
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
sub GetAuthenticationURL
|
115
|
|
|
|
|
|
|
{
|
116
|
0
|
|
|
0
|
0
|
|
my $self = shift;
|
117
|
0
|
|
|
|
|
|
$self->{strAuthenticationURL};
|
118
|
|
|
|
|
|
|
}
|
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
sub GetCavv
|
121
|
|
|
|
|
|
|
{
|
122
|
0
|
|
|
0
|
0
|
|
my $self = shift;
|
123
|
0
|
|
|
|
|
|
$self->{strCavv};
|
124
|
|
|
|
|
|
|
}
|
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
sub GetXID
|
127
|
|
|
|
|
|
|
{
|
128
|
0
|
|
|
0
|
0
|
|
my $self = shift;
|
129
|
0
|
|
|
|
|
|
$self->{strXID};
|
130
|
|
|
|
|
|
|
}
|
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
sub GetStatus {
|
133
|
0
|
|
|
0
|
0
|
|
my $self = shift;
|
134
|
0
|
|
|
|
|
|
$self->{strStatus};
|
135
|
|
|
|
|
|
|
}
|
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
sub GetTransactionConditionCode {
|
138
|
0
|
|
|
0
|
0
|
|
my $self = shift;
|
139
|
0
|
|
|
|
|
|
$self->{strTransactionConditionCode};
|
140
|
|
|
|
|
|
|
}
|