| line |
true |
false |
branch |
|
18
|
1 |
19 |
if (exists $vars{'error'} and ref $vars{'error'} eq "CODE") |
|
29
|
17 |
3 |
if (exists $vars{'payload'}) { } |
|
31
|
1 |
16 |
unless $vars{'webhook'} |
|
37
|
2 |
1 |
if (exists $ENV{'GATEWAY_INTERFACE'}) { } |
|
39
|
1 |
1 |
if $vars{'payload'} |
|
40
|
1 |
1 |
unless $vars{'webhook'} |
|
67
|
0 |
17 |
unless (defined $self->{'payload'}) |
|
72
|
10 |
7 |
if ($self->{'signing_secret'}) |
|
73
|
1 |
9 |
unless ($ENV{'HTTP_STRIPE_SIGNATURE'}) |
|
78
|
3 |
6 |
unless defined $sig |
|
79
|
5 |
1 |
unless ($sig) |
|
87
|
0 |
8 |
unless ($hook_type) |
|
93
|
4 |
4 |
if (exists $self->{$hook_type}) |
|
98
|
1 |
7 |
if (exists $self->{'all-webhooks'}) |
|
115
|
0 |
9 |
unless ($self->{'signing_secret'}) |
|
119
|
0 |
9 |
unless ($ENV{'HTTP_STRIPE_SIGNATURE'}) |
|
126
|
1 |
8 |
unless (defined $sig_head{'t'}) |
|
133
|
1 |
7 |
unless (defined $sig_head{'v1'}) |
|
138
|
1 |
6 |
if (defined $self->{'tolerance'} and abs time - $sig_head{'t'} > $self->{'tolerance'}) |
|
143
|
1 |
5 |
if (&hmac_sha256_hex($signed_payload, $self->{'signing_secret'}) eq $sig_head{'v1'}) |
|
155
|
1 |
3 |
if ($self->{'error'}) |
|
175
|
0 |
2 |
unless ($subscription) |
|
181
|
0 |
2 |
if defined $secret |
|
183
|
0 |
2 |
unless ($self->{'api_secret'}) |
|
204
|
1 |
8 |
if (defined $self->{'error_callback'}) { } |
|
214
|
0 |
0 |
if $self->{'warning'} and $self->{'warning'} =~ /^nowarn/i |
|
216
|
0 |
0 |
if (defined $self->{'warning'}) { } |