diff options
author | ivan <ivan> | 2010-01-17 03:31:53 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-01-17 03:31:53 +0000 |
commit | f2b3bd57f189c837f5c82315e1f6740ab14da1d4 (patch) | |
tree | e8f1e6c77b32b5efdc562535bbc74d474481746c | |
parent | 2d8321656d02dd61851dd15afc32ba679eccb410 (diff) |
return an error for 0 amount payments to avoid a $0 payment getting stuck in declined or captured status, RT#6993
-rw-r--r-- | FS/FS/cust_main.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 9462af51e..87ab9615d 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -3996,6 +3996,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'); |