line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Business::BancaSella::Gestpay; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
$VERSION = "0.12"; |
4
|
0
|
|
|
0
|
0
|
0
|
sub Version { $VERSION; } |
5
|
|
|
|
|
|
|
require 5.004; |
6
|
6
|
|
|
6
|
|
3539
|
use strict; |
|
6
|
|
|
|
|
10
|
|
|
6
|
|
|
|
|
280
|
|
7
|
6
|
|
|
6
|
|
137
|
use Carp; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
11916
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
my %fields = |
11
|
|
|
|
|
|
|
( |
12
|
|
|
|
|
|
|
shopping => undef, |
13
|
|
|
|
|
|
|
otp => undef, |
14
|
|
|
|
|
|
|
amount => undef, |
15
|
|
|
|
|
|
|
id => undef, |
16
|
|
|
|
|
|
|
currency => undef, |
17
|
|
|
|
|
|
|
language => undef, |
18
|
|
|
|
|
|
|
cardnumber => undef, |
19
|
|
|
|
|
|
|
expmonth => undef, |
20
|
|
|
|
|
|
|
expyear => undef, |
21
|
|
|
|
|
|
|
name => undef, |
22
|
|
|
|
|
|
|
mail => undef, |
23
|
|
|
|
|
|
|
user_params => {}, |
24
|
|
|
|
|
|
|
); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub new |
27
|
|
|
|
|
|
|
{ |
28
|
2
|
|
|
2
|
0
|
29
|
my $proto = shift; |
29
|
2
|
|
33
|
|
|
19
|
my $class = ref($proto) || $proto; |
30
|
2
|
|
|
|
|
6
|
my $self = {}; |
31
|
2
|
|
|
|
|
6
|
bless $self,$class; |
32
|
2
|
|
|
|
|
12
|
$self->init(@_); |
33
|
2
|
|
|
|
|
11
|
return $self; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub init { |
37
|
4
|
|
|
4
|
0
|
15
|
my $self = shift; |
38
|
4
|
|
|
|
|
18
|
my (%options) = @_; |
39
|
|
|
|
|
|
|
# Assign default options |
40
|
4
|
|
|
|
|
33
|
while (my ($key,$value) = each(%fields)) { |
41
|
48
|
|
100
|
|
|
333
|
$self->{$key} = $self->{$key} || $value; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
# Assign options |
44
|
4
|
|
|
|
|
25
|
while (my ($key,$value) = each(%options)) { |
45
|
17
|
|
|
|
|
55
|
$self->{$key} = $value |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
6
|
50
|
|
6
|
1
|
44
|
sub shopping { my $s=shift; return @_ ? ($s->{shopping}=shift) : $s->{shopping} } |
|
6
|
|
|
|
|
243
|
|
50
|
4
|
50
|
|
4
|
1
|
14
|
sub otp { my $s=shift; return @_ ? ($s->{otp}=shift) : $s->{otp} } |
|
4
|
|
|
|
|
25
|
|
51
|
6
|
50
|
|
6
|
1
|
28
|
sub amount { my $s=shift; return @_ ? ($s->{amount}=shift) : $s->{amount} } |
|
6
|
|
|
|
|
166
|
|
52
|
4
|
50
|
|
4
|
1
|
7
|
sub id { my $s=shift; return @_ ? ($s->{id}=shift) : $s->{id} } |
|
4
|
|
|
|
|
17
|
|
53
|
4
|
50
|
|
4
|
1
|
9
|
sub currency { my $s=shift; return @_ ? ($s->{currency}=shift) : $s->{currency} } |
|
4
|
|
|
|
|
17
|
|
54
|
2
|
50
|
|
2
|
1
|
5
|
sub language { my $s=shift; return @_ ? ($s->{language}=shift) : $s->{language} } |
|
2
|
|
|
|
|
15
|
|
55
|
2
|
50
|
|
2
|
1
|
3
|
sub cardnumber { my $s=shift; return @_ ? ($s->{cardnumber}=shift) : $s->{cardnumber} } |
|
2
|
|
|
|
|
16
|
|
56
|
2
|
50
|
|
2
|
1
|
4
|
sub expmonth { my $s=shift; return @_ ? ($s->{expmonth}=shift) : $s->{expmonth} } |
|
2
|
|
|
|
|
7
|
|
57
|
2
|
50
|
|
2
|
1
|
3
|
sub expyear { my $s=shift; return @_ ? ($s->{expyear}=shift) : $s->{expyear} } |
|
2
|
|
|
|
|
9
|
|
58
|
2
|
50
|
|
2
|
1
|
3
|
sub name { my $s=shift; return @_ ? ($s->{name}=shift) : $s->{name} } |
|
2
|
|
|
|
|
10
|
|
59
|
2
|
50
|
|
2
|
1
|
3
|
sub mail { my $s=shift; return @_ ? ($s->{mail}=shift) : $s->{mail} } |
|
2
|
|
|
|
|
7
|
|
60
|
2
|
50
|
|
2
|
0
|
15
|
sub user_params { my $s=shift; return @_ ? ($s->{user_params}=shift) : $s->{user_params} } |
|
2
|
|
|
|
|
19
|
|
61
|
|
|
|
|
|
|
|
62
|
0
|
|
|
0
|
1
|
0
|
sub uri { my $s=shift; return $s->{uri} } |
|
0
|
|
|
|
|
0
|
|
63
|
0
|
|
|
0
|
1
|
0
|
sub form { my $s=shift; return $s->{form} } |
|
0
|
|
|
|
|
0
|
|
64
|
1
|
|
|
1
|
1
|
3
|
sub result { my $s=shift; return $s->{result} } |
|
1
|
|
|
|
|
1747
|
|
65
|
0
|
|
|
0
|
1
|
|
sub authcode { my $s=shift; return $s->{authcode} } |
|
0
|
|
|
|
|
|
|
66
|
0
|
|
|
0
|
1
|
|
sub bankid { my $s=shift; return $s->{bankid} } |
|
0
|
|
|
|
|
|
|
67
|
0
|
|
|
0
|
1
|
|
sub errcode { my $s=shift; return $s->{errcode} } |
|
0
|
|
|
|
|
|
|
68
|
0
|
|
|
0
|
1
|
|
sub errstr { my $s=shift; return $s->{errstr} } |
|
0
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
# Preloaded methods go here. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
1; |
74
|
|
|
|
|
|
|
__END__ |