| line |
true |
false |
branch |
|
48
|
1 |
1 |
unless defined $args{'amount'} |
|
49
|
0 |
1 |
unless defined $args{'currency'} |
|
50
|
0 |
1 |
unless defined $args{'return_url'} |
|
51
|
0 |
1 |
unless defined $args{'cancel_url'} |
|
59
|
1 |
0 |
if defined $args{'description'} |
|
60
|
1 |
0 |
if defined $args{'invoice_id'} |
|
61
|
1 |
0 |
if defined $args{'custom_id'} |
|
62
|
0 |
1 |
if defined $args{'soft_descriptor'} |
|
63
|
0 |
1 |
if defined $args{'reference_id'} |
|
65
|
1 |
0 |
if ($args{'items'} and @{$args{'items'};}) |
|
70
|
0 |
1 |
unless my $unit = $i->{'unit_amount'} // $i->{'price'} |
|
81
|
1 |
0 |
defined $i->{'sku'} ? : |
|
|
0 |
1 |
defined $i->{'description'} ? : |
|
|
0 |
1 |
defined $i->{'category'} ? : |
|
95
|
0 |
1 |
if $args{'shipping'} |
|
104
|
2 |
3 |
if defined $args{$k} |
|
114
|
0 |
1 |
unless $args{'intent'} |
|
116
|
0 |
1 |
unless ref $args{'purchase_units'} eq "ARRAY" and @{$args{'purchase_units'};} |
|
125
|
1 |
0 |
if $args{'return_url'} |
|
126
|
1 |
0 |
if $args{'cancel_url'} |
|
127
|
1 |
0 |
if $args{'brand_name'} |
|
128
|
1 |
0 |
if $args{'locale'} |
|
131
|
0 |
1 |
if $args{'shipping_preference'} |
|
132
|
1 |
0 |
if (%ctx) |
|
139
|
0 |
1 |
if $args{'payer'} |
|
148
|
0 |
0 |
unless $id |
|
156
|
0 |
0 |
unless $id |
|
168
|
0 |
0 |
unless $id |