summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-03-12 15:17:36 -0800
committerIvan Kohler <ivan@freeside.biz>2016-03-12 15:17:36 -0800
commit1ff7070534d12c49c9d16f230301a3880e8dd5ec (patch)
treee40c0a6423af1cf893cee1ba97f9b9078591b7ce
parent5eb7abe177a12aff466629f05fd1a0cf934fd489 (diff)
don't run $0 transactions for self-service orders of $0 packages, RT#39078
-rw-r--r--FS/FS/cust_main/Billing_Realtime.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/FS/FS/cust_main/Billing_Realtime.pm b/FS/FS/cust_main/Billing_Realtime.pm
index 20b21dc0b..1db44bc2d 100644
--- a/FS/FS/cust_main/Billing_Realtime.pm
+++ b/FS/FS/cust_main/Billing_Realtime.pm
@@ -97,6 +97,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} );