projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
optionally scale to the page width when printing, #71301
[freeside.git]
/
httemplate
/
edit
/
payment_gateway.html
diff --git
a/httemplate/edit/payment_gateway.html
b/httemplate/edit/payment_gateway.html
index
37618d6
..
a85ba57
100644
(file)
--- a/
httemplate/edit/payment_gateway.html
+++ b/
httemplate/edit/payment_gateway.html
@@
-39,7
+39,7
@@
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
-my $json = JSON::XS->new;
+my $json =
Cpanel::
JSON::XS->new;
$json->canonical(1);
my %modules = (
'Business::OnlinePayment' => [
$json->canonical(1);
my %modules = (
'Business::OnlinePayment' => [
@@
-55,6
+55,7
@@
my %modules = (
'eSelectPlus',
'ElavonVirtualMerchant',
'Exact',
'eSelectPlus',
'ElavonVirtualMerchant',
'Exact',
+ 'FirstDataGlobalGateway',
'iAuthorizer',
'Ingotz',
'InternetSecure',
'iAuthorizer',
'Ingotz',
'InternetSecure',
@@
-102,6
+103,7
@@
my %modules = (
'KeyBank',
'Paymentech',
'TD_EFT',
'KeyBank',
'Paymentech',
'TD_EFT',
+ 'BillBuddy',
],
);
],
);
@@
-111,8
+113,7
@@
my @actions = (
'Authorization Only,Post Authorization',
);
'Authorization Only,Post Authorization',
);
-my $fields = [
- {
+my $fields = [ {
field => 'gateway_namespace',
type => 'select',
options => [ qw(
field => 'gateway_namespace',
type => 'select',
options => [ qw(
@@
-165,8
+166,11
@@
my $fields = [
my $field_callback = sub {
my ($cgi, $object, $field_hashref ) = @_;
if ($object->gatewaynum) {
my $field_callback = sub {
my ($cgi, $object, $field_hashref ) = @_;
if ($object->gatewaynum) {
- if ( $field_hashref->{field} =~ /gateway_(module|namespace)/ ) {
+ if ( $field_hashref->{field} eq 'gateway_module' ) {
+ $field_hashref->{type} = 'fixed';
+ } elsif ( $field_hashref->{field} eq 'gateway_namespace' ) {
$field_hashref->{type} = 'fixed';
$field_hashref->{type} = 'fixed';
+ $field_hashref->{formatted_value} = $object->namespace_description;
}
}
};
}
}
};