line |
true |
false |
branch |
26
|
5 |
3 |
if (exists $vars{'payload'}) { } |
28
|
1 |
4 |
unless $vars{'webhook'} |
34
|
2 |
1 |
if (exists $ENV{'GATEWAY_INTERFACE'}) { } |
36
|
1 |
1 |
if $vars{'payload'} |
37
|
1 |
1 |
unless $vars{'webhook'} |
64
|
0 |
6 |
unless (defined $self->{'payload'}) |
69
|
1 |
5 |
unless ($ENV{'HTTP_STRIPE_SIGNATURE'}) |
74
|
3 |
2 |
if ($self->{'signing_secret'}) |
76
|
0 |
3 |
unless defined $sig |
77
|
2 |
1 |
unless ($sig) |
85
|
0 |
3 |
unless ($hook_type) |
91
|
3 |
0 |
if (exists $self->{$hook_type}) |
97
|
0 |
3 |
if (exists $self->{'all-webhooks'}) |
113
|
0 |
3 |
unless ($self->{'signing_secret'}) |
117
|
0 |
3 |
unless ($ENV{'HTTP_STRIPE_SIGNATURE'}) |
125
|
0 |
3 |
unless (defined $sig_head{'v1'}) |
130
|
1 |
2 |
if (&hmac_sha256_hex($signed_payload, $self->{'signing_secret'}) eq $sig_head{'v1'}) |
142
|
0 |
0 |
if ($self->{'error'}) |
160
|
0 |
0 |
unless ($subscription) |
166
|
0 |
0 |
if defined $secret |
168
|
0 |
0 |
unless ($self->{'api_secret'}) |
189
|
0 |
2 |
if (defined &{$self->{'error'};}) { } |
199
|
0 |
1 |
if $self->{'warning'} and $self->{'warning'} =~ /^nowarn/i |
201
|
0 |
1 |
if (defined $self->{'warning'}) { } |