[freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.93, 1.94
Ivan,,,
ivan at wavetail.420.am
Sat Aug 29 12:05:24 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail.420.am:/tmp/cvs-serv18555
Modified Files:
MyAccount.pm
Log Message:
hopefully really fix self-service when not using real-time gateway
Index: MyAccount.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI/MyAccount.pm,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -d -r1.93 -r1.94
--- MyAccount.pm 29 Aug 2009 18:51:41 -0000 1.93
+++ MyAccount.pm 29 Aug 2009 19:05:22 -0000 1.94
@@ -209,12 +209,14 @@
$info->{hide_payment_fields} =
[
- map { return 0 unless FS::payby->realtime($_);
- my $pg = $cust_main->agent->payment_gateway(
- 'method' => FS::payby->payby2bop($_),
- 'nofatal' => 1,
- ) or return 0;
- $pg->gateway_namespace eq 'Business::OnlineThirdPartyPayment';
+ map { my $pg = '';
+ if ( FS::payby->realtime($_) ) {
+ $pg = $cust_main->agent->payment_gateway(
+ 'method' => FS::payby->payby2bop($_),
+ 'nofatal' => 1,
+ );
+ }
+ $pg && $pg->gateway_namespace eq 'Business::OnlineThirdPartyPayment';
}
@{ $info->{cust_paybys} }
];
@@ -469,12 +471,14 @@
$return{hide_payment_fields} =
[
- map { return 0 unless FS::payby->realtime($_);
- my $pg = $cust_main->agent->payment_gateway(
- 'method' => FS::payby->payby2bop($_),
- 'nofatal' => 1,
- ) or return 0;
- $pg->gateway_namespace eq 'Business::OnlineThirdPartyPayment';
+ map { my $pg = '';
+ if ( FS::payby->realtime($_) ) {
+ $pg = $cust_main->agent->payment_gateway(
+ 'method' => FS::payby->payby2bop($_),
+ 'nofatal' => 1,
+ );
+ }
+ $pg && $pg->gateway_namespace eq 'Business::OnlineThirdPartyPayment';
}
@{ $return{cust_paybys} }
];
More information about the freeside-commits
mailing list