projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
no need for FS calendar buttons in RT 4.2
[freeside.git]
/
httemplate
/
edit
/
payment_gateway.html
diff --git
a/httemplate/edit/payment_gateway.html
b/httemplate/edit/payment_gateway.html
index
0cd93e4
..
f9b8f24
100644
(file)
--- a/
httemplate/edit/payment_gateway.html
+++ b/
httemplate/edit/payment_gateway.html
@@
-22,6
+22,9
@@
<SCRIPT TYPE="text/javascript">
var modulesForNamespace = <% $json->encode(\%modules) %>;
function changeNamespace() {
<SCRIPT TYPE="text/javascript">
var modulesForNamespace = <% $json->encode(\%modules) %>;
function changeNamespace() {
+ if (document.getElementById('gatewaynum').value) {
+ return true;
+ }
var ns = document.getElementById('gateway_namespace').value;
var select_module = document.getElementById('gateway_module');
select_module.options.length = 0;
var ns = document.getElementById('gateway_namespace').value;
var select_module = document.getElementById('gateway_module');
select_module.options.length = 0;
@@
-39,7
+42,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' => [
@@
-47,27
+50,36
@@
my %modules = (
'AuthorizeNet',
'BankOfAmerica', #deprecated?
'Beanstream',
'AuthorizeNet',
'BankOfAmerica', #deprecated?
'Beanstream',
+ 'Braintree',
'Capstone',
'Capstone',
+ 'CardFortress',
'Cardstream',
'CashCow',
'CyberSource',
'eSec',
'eSelectPlus',
'ElavonVirtualMerchant',
'Cardstream',
'CashCow',
'CyberSource',
'eSec',
'eSelectPlus',
'ElavonVirtualMerchant',
+ 'eWay',
'Exact',
'Exact',
+ 'FirstDataGlobalGateway',
+ 'GlobalPayments',
'iAuthorizer',
'Ingotz',
'InternetSecure',
'iAuthorizer',
'Ingotz',
'InternetSecure',
- 'IPaymentTPG',
+
#
'IPaymentTPG',
'IPPay',
'Iridium',
'Jettis',
'Jety',
'LinkPoint',
'IPPay',
'Iridium',
'Jettis',
'Jety',
'LinkPoint',
+ 'Litle',
'MerchantCommerce',
'Network1Financial',
'MerchantCommerce',
'Network1Financial',
+ 'NMI',
'OCV',
'OCV',
+ 'Ogone',
'OpenECHO',
'OpenECHO',
+ 'PaperlessTrans',
'PayConnect',
'PayflowPro',
'PaymenTech',
'PayConnect',
'PayflowPro',
'PaymenTech',
@@
-83,24
+95,30
@@
my %modules = (
'Skipjack',
'StGeorge',
'SurePay',
'Skipjack',
'StGeorge',
'SurePay',
+ 'SynapseGateway',
'TCLink',
'TransactionCentral',
'TransFirsteLink',
'TCLink',
'TransactionCentral',
'TransFirsteLink',
+ 'USAePay',
'Vanco',
'viaKLIX',
'VirtualNet',
'Vanco',
'viaKLIX',
'VirtualNet',
+ 'vSecureProcessing',
'WesternACH',
'WorldPay',
],
'Business::OnlineThirdPartyPayment' => [
#'eWayShared', support currently broken
'WesternACH',
'WorldPay',
],
'Business::OnlineThirdPartyPayment' => [
#'eWayShared', support currently broken
- #'Interswitchng',
- 'PayPal',
'FCMB',
'FCMB',
+ #'Interswitchng', #incomplete?
+ 'PayPal',
],
'Business::BatchPayment' => [
],
'Business::BatchPayment' => [
+ 'BillBuddy',
+ 'CardFortress',
'KeyBank',
'Paymentech',
'KeyBank',
'Paymentech',
+ 'RBC',
'TD_EFT',
],
);
'TD_EFT',
],
);
@@
-130,7
+148,7
@@
my $fields = [ {
field => 'gateway_module',
type => 'select',
# does it even make sense to list all modules here?
field => 'gateway_module',
type => 'select',
# does it even make sense to list all modules here?
- options => [ sort { lc($a) cmp lc
($b) }
+ options => [ sort { lc($a) cmp lc($b) }
map { @$_ } values %modules ],
},
'gateway_username',
map { @$_ } values %modules ],
},
'gateway_username',
@@
-165,7
+183,13
@@
my $field_callback = sub {
my ($cgi, $object, $field_hashref ) = @_;
if ($object->gatewaynum) {
if ( $field_hashref->{field} eq 'gateway_module' ) {
my ($cgi, $object, $field_hashref ) = @_;
if ($object->gatewaynum) {
if ( $field_hashref->{field} eq 'gateway_module' ) {
- $field_hashref->{type} = 'fixed';
+ if ($object->gateway_namespace eq 'Business::OnlinePayment' &&
+ $object->gateway_module ne 'CardFortress'
+ ) {
+ $field_hashref->{options} = [ $object->gateway_module, 'CardFortress' ]
+ } else {
+ $field_hashref->{type} = 'fixed';
+ }
} elsif ( $field_hashref->{field} eq 'gateway_namespace' ) {
$field_hashref->{type} = 'fixed';
$field_hashref->{formatted_value} = $object->namespace_description;
} elsif ( $field_hashref->{field} eq 'gateway_namespace' ) {
$field_hashref->{type} = 'fixed';
$field_hashref->{formatted_value} = $object->namespace_description;