| line |
true |
false |
branch |
|
26
|
2 |
1 |
if (exists $ENV{'GATEWAY_INTERFACE'}) { } |
|
28
|
1 |
1 |
if $vars{'payload'} |
|
29
|
1 |
1 |
unless $vars{'webhook'} |
|
55
|
0 |
2 |
unless (defined $self->{'payload'}) |
|
60
|
0 |
2 |
unless ($ENV{'HTTP_STRIPE_SIGNATURE'}) |
|
65
|
1 |
1 |
if ($self->{'signing_secret'}) |
|
67
|
0 |
1 |
unless defined $sig |
|
68
|
1 |
0 |
unless ($sig) |
|
76
|
1 |
0 |
if (exists $self->{$hook_type}) |
|
82
|
0 |
1 |
if (exists $self->{'all-webhooks'}) |
|
98
|
0 |
1 |
unless ($self->{'signing_secret'}) |
|
102
|
0 |
1 |
unless ($ENV{'HTTP_STRIPE_SIGNATURE'}) |
|
110
|
0 |
1 |
unless (defined $sig_head{'v1'}) |
|
114
|
0 |
1 |
if (&hmac_sha256_hex($signed_payload, $self->{'signing_secret'}) eq $sig_head{'v1'}) |
|
126
|
0 |
0 |
if ($self->{'error'}) |
|
144
|
0 |
0 |
unless ($subscription) |
|
150
|
0 |
0 |
if defined $secret |
|
152
|
0 |
0 |
unless ($self->{'api_secret'}) |
|
173
|
0 |
1 |
if (defined &{$self->{'error'};}) { } |
|
183
|
0 |
0 |
if $self->{'warning'} and $self->{'warning'} =~ /^nowarn/i |
|
185
|
0 |
0 |
if (defined $self->{'warning'}) { } |