don't barf on status screen without a CC processor enabled
authorIvan Kohler <ivan@freeside.biz>
Sun, 19 Mar 2017 15:53:31 +0000 (08:53 -0700)
committerIvan Kohler <ivan@freeside.biz>
Sun, 19 Mar 2017 15:53:31 +0000 (08:53 -0700)
httemplate/view/Status.html

index 2d91b0b..e08bfe4 100644 (file)
@@ -228,7 +228,8 @@ foreach my $agent (
   })
 ) {
   my $gateway = $agent->payment_gateway('method'=>'VISA card', 'nofatal'=>1, );
-  next unless $gateway->gateway_namespace eq 'Business::OnlinePayment';
+  next unless $gateway
+           && $gateway->gateway_namespace eq 'Business::OnlinePayment';
   eval "use Business::OnlinePayment";
   die $@ if $@; #die?
   my $bop = new Business::OnlinePayment( $gateway->gateway_module,