return an error for 0 amount payments to avoid a $0 payment getting stuck in declined...
[freeside.git] / FS / FS / cust_main.pm
index fc16f14..50c840c 100644 (file)
@@ -4107,6 +4107,8 @@ sub realtime_bop {
     warn "  $_ => $options{$_}\n" foreach keys %options;
   }
 
+  return "Amount must be greater than 0" unless $amount > 0;
+
   unless ( $options{'description'} ) {
     if ( $conf->exists('business-onlinepayment-description') ) {
       my $dtempl = $conf->config('business-onlinepayment-description');