diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-03-22 20:25:02 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-03-22 20:25:02 -0700 |
commit | c3d0d1fba9dfc9988f148cbf7bd07de33d5025d8 (patch) | |
tree | 502106ab50edfef4bc95a11ab5ee5a39e96fe3e4 /FS/FS/ClientAPI | |
parent | 4055cf6d3af3a16318a54e374cc04ae065f0dc14 (diff) |
don't call realtime_collect for prepaid cards, fixes signup error in 3.x, RT#22151
Diffstat (limited to 'FS/FS/ClientAPI')
-rw-r--r-- | FS/FS/ClientAPI/Signup.pm | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/FS/FS/ClientAPI/Signup.pm b/FS/FS/ClientAPI/Signup.pm index 2fcc4b143..1dbb20bc7 100644 --- a/FS/FS/ClientAPI/Signup.pm +++ b/FS/FS/ClientAPI/Signup.pm @@ -773,13 +773,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', |