From: ivan Date: Sun, 17 Jan 2010 03:31:52 +0000 (+0000) Subject: return an error for 0 amount payments to avoid a $0 payment getting stuck in declined... X-Git-Tag: root_of_svc_elec_features~534 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=82515e96b3b6e572e453d1cec69085ee09ccfb3f return an error for 0 amount payments to avoid a $0 payment getting stuck in declined or captured status, RT#6993 --- diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index fc16f14a6..50c840c51 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -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');