[freeside-commits] freeside/FS/FS/ClientAPI Signup.pm, 1.64.2.1, 1.64.2.2
Mark Wells
mark at wavetail.420.am
Thu Dec 23 21:49:03 PST 2010
Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail.420.am:/tmp/cvs-serv19118/FS/FS/ClientAPI
Modified Files:
Tag: FREESIDE_2_1_BRANCH
Signup.pm
Log Message:
eWay self-signup fixes
Index: Signup.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI/Signup.pm,v
retrieving revision 1.64.2.1
retrieving revision 1.64.2.2
diff -u -w -d -r1.64.2.1 -r1.64.2.2
--- Signup.pm 21 Dec 2010 09:13:03 -0000 1.64.2.1
+++ Signup.pm 24 Dec 2010 05:49:01 -0000 1.64.2.2
@@ -556,9 +556,17 @@
return { 'error' => "Unknown reseller" }
unless $agent;
- my $gw = $agent->payment_gateway( 'method' => FS::payby->payby2bop($payby),
+ my $gw;
+ my $gatewaynum = $conf->config('selfservice-payment_gateway');
+ if ( $gatewaynum ) {
+ $gw = qsearchs('payment_gateway', { gatewaynum => $gatewaynum });
+ die "configured gatewaynum $gatewaynum not found!" if !$gw;
+ }
+ else {
+ $gw = $agent->payment_gateway( 'method' => FS::payby->payby2bop($payby),
'nofatal' => 1,
);
+ }
$cust_main->payby('BILL') # MCRD better?
if $gw && $gw->gateway_namespace eq 'Business::OnlineThirdPartyPayment';
More information about the freeside-commits
mailing list