line |
true |
false |
branch |
26
|
0 |
2 |
unless $attrs{'cancel_url'} and $attrs{'success_url'} |
31
|
1 |
1 |
if $attrs{'api_public'} =~ /^sk_/ |
32
|
1 |
1 |
if $attrs{'api_secret'} =~ /^pk_/ |
33
|
1 |
1 |
unless $attrs{'api_public'} =~ /^pk_/ |
34
|
1 |
1 |
unless $attrs{'api_secret'} =~ /^sk_/ |
35
|
0 |
2 |
unless $attrs{'api_secret'} |
36
|
0 |
2 |
unless $attrs{'api_public'} |
71
|
0 |
0 |
unless $customer->{'name'} |
72
|
0 |
0 |
if $self->{'error'} |
75
|
0 |
0 |
if ($response->{'success'}) |
77
|
0 |
0 |
if ($payload->{'object'} eq "customer") |
89
|
0 |
0 |
unless $customer |
90
|
0 |
0 |
unless $plan |
91
|
0 |
0 |
if $self->{'error'} |
94
|
0 |
0 |
if ($self->{'append_customer'}) |
95
|
0 |
0 |
if ($success_url =~ /\?/) { } |
111
|
0 |
0 |
if $self->{'trial_days'} |
114
|
0 |
0 |
if ($response->{'success'}) |
116
|
0 |
0 |
if ($payload->{'object'} eq "checkout.session") |
128
|
0 |
0 |
unless ($subscription) |
142
|
0 |
0 |
unless $subscription |
143
|
0 |
0 |
if $self->{'error'} |
145
|
0 |
0 |
unless defined $cancel |
146
|
0 |
0 |
$cancel ? : |
154
|
0 |
0 |
if ($response->{'success'}) |
166
|
0 |
0 |
unless $subscription |
167
|
0 |
0 |
if $self->{'error'} |
171
|
0 |
0 |
if ($response->{'success'}) |
183
|
0 |
0 |
unless $subscription |
184
|
0 |
0 |
unless $plan |
185
|
0 |
0 |
if $self->{'error'} |
191
|
0 |
0 |
if ($payload->{'items'}{'data'}[0]{'price'}{'id'} eq $plan) |
205
|
0 |
0 |
if ($response->{'success'}) |
217
|
0 |
0 |
unless $customer |
218
|
0 |
0 |
unless $subscription |
219
|
0 |
0 |
if $self->{'error'} |
231
|
0 |
0 |
if ($response->{'success'}) |
244
|
0 |
0 |
unless $customer |
245
|
0 |
0 |
unless $subscription |
246
|
0 |
0 |
unless $session |
247
|
0 |
0 |
if $self->{'error'} |
252
|
0 |
0 |
unless ($json->{'setup_intent'}) |
259
|
0 |
0 |
if ($response->{'success'}) |
268
|
0 |
0 |
if ($response->{'success'}) |