Branch Coverage

blib/lib/Business/OnlinePayment/SagePay.pm
Criterion Covered Total %
branch 0 108 0.0


line true false branch
127 0 0 if $value
159 0 0 ref $map{$k} ? :
179 0 0 $ENV{'SAGEPAY_F_SIMULATOR'} ? :
0 0 if $self->test_transaction
189 0 0 unless ($page)
196 0 0 if ($ENV{'SAGEPAY_DEBUG'})
208 0 0 $self->is_success($$rf{'Status'} eq 'OK') || $$rf{'Status'} eq 'AUTHENTICATED' ? :
0 0 if (not $self->is_success($$rf{'Status'} eq 'OK') || $$rf{'Status'} eq 'AUTHENTICATED' ? 1 : 0) { }
213 0 0 if ($ENV{'SAGEPAY_DEBUG_ERROR_ONLY'})
240 0 0 if ($ENV{'SAGEPAY_DEBUG'})
247 0 0 $ENV{'SAGEPAY_F_SIMULATOR'} ? :
0 0 if $self->test_transaction
261 0 0 unless ($page)
269 0 0 if ($ENV{'SAGEPAY_DEBUG'})
280 0 0 $$rf{'Status'} eq 'OK' || $$rf{'Status'} eq 'AUTHENTICATED' ? :
0 0 if (not $self->is_success($$rf{'Status'} eq 'OK' || $$rf{'Status'} eq 'AUTHENTICATED' ? 1 : 0)) { }
287 0 0 if ($ENV{'SAGEPAY_DEBUG_ERROR_ONLY'})
317 0 0 if ($ENV{'SAGEPAY_DEBUG'})
332 0 0 unless ($page)
340 0 0 if ($ENV{'SAGEPAY_DEBUG'})
347 0 0 $$rf{'Status'} eq 'OK' ? :
0 0 unless ($self->is_success($$rf{'Status'} eq 'OK' ? 1 : 0))
348 0 0 if ($ENV{'SAGEPAY_DEBUG_ERROR_ONLY'})
370 0 0 if ($ENV{'SAGEPAY_DEBUG'})
385 0 0 unless ($page)
393 0 0 if ($ENV{'SAGEPAY_DEBUG'})
400 0 0 $$rf{'Status'} eq 'OK' ? :
0 0 unless ($self->is_success($$rf{'Status'} eq 'OK' ? 1 : 0))
401 0 0 if ($ENV{'SAGEPAY_DEBUG_ERROR_ONLY'})
410 0 0 unless defined $self->vendor
412 0 0 $ENV{'SAGEPAY_F_SIMULATOR'} ? :
0 0 if $self->test_transaction
436 0 0 if ($ENV{'SAGEPAY_DEBUG'})
451 0 0 unless ($page)
459 0 0 if ($ENV{'SAGEPAY_DEBUG'})
467 0 0 if defined $$rf{'TxAuthNo'}
468 0 0 if defined $$rf{'SecurityKey'}
469 0 0 $$rf{'Status'} eq 'OK' ? :
0 0 unless ($self->is_success($$rf{'Status'} eq 'OK' ? 1 : 0))
470 0 0 if ($ENV{'SAGEPAY_DEBUG_ERROR_ONLY'})
488 0 0 if $content{'startdate'}
493 0 0 $content{'customer_name'} || $content{'first_name'} ? :
501 0 0 if $content{'amount'}
513 0 0 if ($ENV{'SAGEPAY_DEBUG'})
527 0 0 unless ($page)
588 0 0 if ($ENV{'SAGEPAY_DEBUG'})
597 0 0 if $post_data{'TxType'} eq 'AUTHORISE'
608 0 0 unless ($page)
621 0 0 if ($self->result_code eq '3DAUTH' and $$rf{'3DSecureStatus'} eq 'OK')
631 0 0 if ($self->result_code eq 'PPREDIRECT')
640 0 0 if ($ENV{'SAGEPAY_DEBUG'})
645 0 0 $$rf{'Status'} eq '3DAUTH' || $$rf{'Status'} eq 'PPREDIRECT' || $$rf{'Status'} eq 'OK' || $$rf{'Status'} eq 'AUTHENTICATED' || $$rf{'Status'} eq 'REGISTERED' ? :
0 0 unless ($self->is_success($$rf{'Status'} eq '3DAUTH' || $$rf{'Status'} eq 'PPREDIRECT' || $$rf{'Status'} eq 'OK' || $$rf{'Status'} eq 'AUTHENTICATED' || $$rf{'Status'} eq 'REGISTERED' ? 1 : 0))
654 0 0 if ($ENV{'SAGEPAY_DEBUG_ERROR_ONLY'})