don't run $0 transactions for self-service orders of $0 packages, RT#39078
[freeside.git] / FS / FS / cust_main / Billing_Realtime.pm
index 53070df..1cd2aba 100644 (file)
@@ -122,6 +122,8 @@ sub realtime_collect {
   }
 
   $options{amount} = $self->balance unless exists( $options{amount} );
+  return '' unless $options{amount} > 0;
+
   $options{method} = FS::payby->payby2bop($self->payby)
     unless exists( $options{method} );