summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-03-22 20:25:03 -0700
committerIvan Kohler <ivan@freeside.biz>2013-03-22 20:25:03 -0700
commitee08941821939b8fd1b1237634127131daa529b2 (patch)
tree03e94e4a802fcbe69b99561348d89592ae544d5e
parentddcb4b190e77cb39dee3ba519c52f301e75394d6 (diff)
don't call realtime_collect for prepaid cards, fixes signup error in 3.x, RT#22151
-rw-r--r--FS/FS/ClientAPI/Signup.pm16
1 files changed, 9 insertions, 7 deletions
diff --git a/FS/FS/ClientAPI/Signup.pm b/FS/FS/ClientAPI/Signup.pm
index f17752a45..b11e36f6f 100644
--- a/FS/FS/ClientAPI/Signup.pm
+++ b/FS/FS/ClientAPI/Signup.pm
@@ -762,13 +762,15 @@ sub new_customer {
# " new customer: $bill_error"
# if $bill_error;
- $bill_error = $cust_main->realtime_collect(
- method => FS::payby->payby2bop( $packet->{payby} ),
- depend_jobnum => $placeholder->jobnum,
- selfservice => 1,
- );
- #warn "$me error collecting from new customer: $bill_error"
- # if $bill_error;
+ unless ( $packet->{payby} eq 'PREPAY' ) {
+ $bill_error = $cust_main->realtime_collect(
+ method => FS::payby->payby2bop( $packet->{payby} ),
+ depend_jobnum => $placeholder->jobnum,
+ selfservice => 1,
+ );
+ #warn "$me error collecting from new customer: $bill_error"
+ # if $bill_error;
+ }
if ($bill_error && ref($bill_error) eq 'HASH') {
return { 'error' => '_collect',