Update of /cvsroot/tep/catalog/catalog/includes/modules/payment
In directory sc8-pr-cvs1:/tmp/cvs-serv26833
Modified Files:
authorizenet.php cc.php cod.php ipayment.php moneyorder.php
nochex.php paypal.php pm2checkout.php psigate.php secpay.php
Log Message:
Adding sort order for payment modules
Index: authorizenet.php
===================================================================
RCS file:
/cvsroot/tep/catalog/catalog/includes/modules/payment/authorizenet.php,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- authorizenet.php 14 Jan 2003 00:10:35 -0000 1.43
+++ authorizenet.php 14 Jan 2003 03:21:51 -0000 1.44
@@ -21,6 +21,7 @@
$this->title = MODULE_PAYMENT_AUTHORIZENET_TEXT_TITLE;
$this->description = MODULE_PAYMENT_AUTHORIZENET_TEXT_DESCRIPTION;
$this->enabled = ((MODULE_PAYMENT_AUTHORIZENET_STATUS == 'True') ? true
: false);
+ $this->sort_order = MODULE_PAYMENT_AUTHORIZENET_SORT_ORDER;
if ((int)MODULE_PAYMENT_AUTHORIZENET_ORDER_STATUS_ID > 0) {
$this->order_status = MODULE_PAYMENT_AUTHORIZENET_ORDER_STATUS_ID;
@@ -279,6 +280,7 @@
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
date_added) values ('Transaction Mode', 'MODULE_PAYMENT_AUTHORIZENET_TESTMODE',
'Test', 'Transaction mode used for processing orders', '6', '0',
'tep_cfg_select_option(array(\'Test\', \'Production\'), ', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
date_added) values ('Transaction Method', 'MODULE_PAYMENT_AUTHORIZENET_METHOD',
'Credit Card', 'Transaction method used for processing orders', '6', '0',
'tep_cfg_select_option(array(\'Credit Card\', \'eCheck\'), ', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
date_added) values ('Customer Notifications',
'MODULE_PAYMENT_AUTHORIZENET_EMAIL_CUSTOMER', 'False', 'Should Authorize.Net
e-mail a receipt to the customer?', '6', '0',
'tep_cfg_select_option(array(\'True\', \'False\'), ', now())");
+ tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, date_added)
values ('Sort order of display.', 'MODULE_PAYMENT_AUTHORIZENET_SORT_ORDER',
'0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, use_function,
set_function, date_added) values ('Payment Zone',
'MODULE_PAYMENT_AUTHORIZENET_ZONE', '0', 'If a zone is selected, only enable
this payment method for that zone.', '6', '2', 'tep_get_zone_class_title',
'tep_cfg_pull_down_zone_classes(', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
use_function, date_added) values ('Set Order Status',
'MODULE_PAYMENT_AUTHORIZENET_ORDER_STATUS_ID', '0', 'Set the status of orders
made with this payment module to this value', '6', '0',
'tep_cfg_pull_down_order_statuses(', 'tep_get_order_Status_name', now())");
}
@@ -288,7 +290,7 @@
}
function keys() {
- return array('MODULE_PAYMENT_AUTHORIZENET_STATUS',
'MODULE_PAYMENT_AUTHORIZENET_LOGIN', 'MODULE_PAYMENT_AUTHORIZENET_TXNKEY',
'MODULE_PAYMENT_AUTHORIZENET_TESTMODE', 'MODULE_PAYMENT_AUTHORIZENET_METHOD',
'MODULE_PAYMENT_AUTHORIZENET_EMAIL_CUSTOMER',
'MODULE_PAYMENT_AUTHORIZENET_ZONE',
'MODULE_PAYMENT_AUTHORIZENET_ORDER_STATUS_ID');
+ return array('MODULE_PAYMENT_AUTHORIZENET_STATUS',
'MODULE_PAYMENT_AUTHORIZENET_LOGIN', 'MODULE_PAYMENT_AUTHORIZENET_TXNKEY',
'MODULE_PAYMENT_AUTHORIZENET_TESTMODE', 'MODULE_PAYMENT_AUTHORIZENET_METHOD',
'MODULE_PAYMENT_AUTHORIZENET_EMAIL_CUSTOMER',
'MODULE_PAYMENT_AUTHORIZENET_ZONE',
'MODULE_PAYMENT_AUTHORIZENET_ORDER_STATUS_ID',
'MODULE_PAYMENT_AUTHORIZENET_SORT_ORDER');
}
}
?>
Index: cc.php
===================================================================
RCS file: /cvsroot/tep/catalog/catalog/includes/modules/payment/cc.php,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- cc.php 14 Jan 2003 00:10:36 -0000 1.49
+++ cc.php 14 Jan 2003 03:21:51 -0000 1.50
@@ -20,6 +20,7 @@
$this->code = 'cc';
$this->title = MODULE_PAYMENT_CC_TEXT_TITLE;
$this->description = MODULE_PAYMENT_CC_TEXT_DESCRIPTION;
+ $this->sort_order = MODULE_PAYMENT_CC_SORT_ORDER;
$this->enabled = ((MODULE_PAYMENT_CC_STATUS == 'True') ? true : false);
if ((int)MODULE_PAYMENT_CC_ORDER_STATUS_ID > 0) {
@@ -186,6 +187,7 @@
function install() {
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
date_added) values ('Enable Credit Card Module', 'MODULE_PAYMENT_CC_STATUS',
'True', 'Do you want to accept credit card payments?', '6', '0',
'tep_cfg_select_option(array(\'True\', \'False\'), ', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, date_added)
values ('Split Credit Card E-Mail Address', 'MODULE_PAYMENT_CC_EMAIL', '', 'If
an e-mail address is entered, the middle digits of the credit card number will
be sent to the e-mail address (the outside digits are stored in the database
with the middle digits censored)', '6', '0', now())");
+ tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, date_added)
values ('Sort order of display.', 'MODULE_PAYMENT_CC_SORT_ORDER', '0', 'Sort
order of display. Lowest is displayed first.', '6', '0' , now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, use_function,
set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_CC_ZONE',
'0', 'If a zone is selected, only enable this payment method for that zone.',
'6', '2', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(',
now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
use_function, date_added) values ('Set Order Status',
'MODULE_PAYMENT_CC_ORDER_STATUS_ID', '0', 'Set the status of orders made with
this payment module to this value', '6', '0',
'tep_cfg_pull_down_order_statuses(', 'tep_get_order_Status_name', now())");
}
@@ -195,7 +197,7 @@
}
function keys() {
- return array('MODULE_PAYMENT_CC_STATUS', 'MODULE_PAYMENT_CC_EMAIL',
'MODULE_PAYMENT_CC_ZONE', 'MODULE_PAYMENT_CC_ORDER_STATUS_ID');
+ return array('MODULE_PAYMENT_CC_STATUS', 'MODULE_PAYMENT_CC_EMAIL',
'MODULE_PAYMENT_CC_ZONE', 'MODULE_PAYMENT_CC_ORDER_STATUS_ID',
'MODULE_PAYMENT_CC_SORT_ORDER');
}
}
?>
Index: cod.php
===================================================================
RCS file: /cvsroot/tep/catalog/catalog/includes/modules/payment/cod.php,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- cod.php 14 Jan 2003 00:10:37 -0000 1.24
+++ cod.php 14 Jan 2003 03:21:51 -0000 1.25
@@ -20,6 +20,7 @@
$this->code = 'cod';
$this->title = MODULE_PAYMENT_COD_TEXT_TITLE;
$this->description = MODULE_PAYMENT_COD_TEXT_DESCRIPTION;
+ $this->sort_order = MODULE_PAYMENT_COD_SORT_ORDER;
$this->enabled = ((MODULE_PAYMENT_COD_STATUS == 'True') ? true : false);
if ((int)MODULE_PAYMENT_COD_ORDER_STATUS_ID > 0) {
@@ -97,6 +98,7 @@
function install() {
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
date_added) values ('Enable Cash On Delivery Module',
'MODULE_PAYMENT_COD_STATUS', 'True', 'Do you want to accept Cash On Delevery
payments?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ',
now());");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, use_function,
set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_COD_ZONE',
'0', 'If a zone is selected, only enable this payment method for that zone.',
'6', '2', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(',
now())");
+ tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, date_added)
values ('Sort order of display.', 'MODULE_PAYMENT_COD_SORT_ORDER', '0', 'Sort
order of display. Lowest is displayed first.', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
use_function, date_added) values ('Set Order Status',
'MODULE_PAYMENT_COD_ORDER_STATUS_ID', '0', 'Set the status of orders made with
this payment module to this value', '6', '0',
'tep_cfg_pull_down_order_statuses(', 'tep_get_order_Status_name', now())");
}
@@ -105,7 +107,7 @@
}
function keys() {
- return array('MODULE_PAYMENT_COD_STATUS', 'MODULE_PAYMENT_COD_ZONE',
'MODULE_PAYMENT_COD_ORDER_STATUS_ID');
+ return array('MODULE_PAYMENT_COD_STATUS', 'MODULE_PAYMENT_COD_ZONE',
'MODULE_PAYMENT_COD_ORDER_STATUS_ID', 'MODULE_PAYMENT_COD_SORT_ORDER');
}
}
?>
Index: ipayment.php
===================================================================
RCS file: /cvsroot/tep/catalog/catalog/includes/modules/payment/ipayment.php,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- ipayment.php 14 Jan 2003 00:10:38 -0000 1.29
+++ ipayment.php 14 Jan 2003 03:21:51 -0000 1.30
@@ -20,6 +20,7 @@
$this->code = 'ipayment';
$this->title = MODULE_PAYMENT_IPAYMENT_TEXT_TITLE;
$this->description = MODULE_PAYMENT_IPAYMENT_TEXT_DESCRIPTION;
+ $this->sort_order = MODULE_PAYMENT_IPAYMENT_SORT_ORDER;
$this->enabled = ((MODULE_PAYMENT_IPAYMENT_STATUS == 'True') ? true :
false);
if ((int)MODULE_PAYMENT_IPAYMENT_ORDER_STATUS_ID > 0) {
@@ -221,6 +222,7 @@
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, date_added)
values ('User ID', 'MODULE_PAYMENT_IPAYMENT_USER_ID', '99999', 'The user ID for
the iPayment service', '6', '3', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, date_added)
values ('User Password', 'MODULE_PAYMENT_IPAYMENT_PASSWORD', '0', 'The user
password for the iPayment service', '6', '4', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
date_added) values ('Transaction Currency', 'MODULE_PAYMENT_IPAYMENT_CURRENCY',
'Either EUR or USD, else EUR', 'The currency to use for credit card
transactions', '6', '5', 'tep_cfg_select_option(array(\'Always EUR\', \'Always
USD\', \'Either EUR or USD, else EUR\', \'Either EUR or USD, else USD\'), ',
now())");
+ tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, date_added)
values ('Sort order of display.', 'MODULE_PAYMENT_IPAYMENT_SORT_ORDER', '0',
'Sort order of display. Lowest is displayed first.', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, use_function,
set_function, date_added) values ('Payment Zone',
'MODULE_PAYMENT_IPAYMENT_ZONE', '0', 'If a zone is selected, only enable this
payment method for that zone.', '6', '2', 'tep_get_zone_class_title',
'tep_cfg_pull_down_zone_classes(', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
use_function, date_added) values ('Set Order Status',
'MODULE_PAYMENT_IPAYMENT_ORDER_STATUS_ID', '0', 'Set the status of orders made
with this payment module to this value', '6', '0',
'tep_cfg_pull_down_order_statuses(', 'tep_get_order_Status_name', now())");
}
@@ -230,7 +232,7 @@
}
function keys() {
- return array('MODULE_PAYMENT_IPAYMENT_STATUS',
'MODULE_PAYMENT_IPAYMENT_ID', 'MODULE_PAYMENT_IPAYMENT_USER_ID',
'MODULE_PAYMENT_IPAYMENT_PASSWORD', 'MODULE_PAYMENT_IPAYMENT_CURRENCY',
'MODULE_PAYMENT_IPAYMENT_ZONE', 'MODULE_PAYMENT_IPAYMENT_ORDER_STATUS_ID');
+ return array('MODULE_PAYMENT_IPAYMENT_STATUS',
'MODULE_PAYMENT_IPAYMENT_ID', 'MODULE_PAYMENT_IPAYMENT_USER_ID',
'MODULE_PAYMENT_IPAYMENT_PASSWORD', 'MODULE_PAYMENT_IPAYMENT_CURRENCY',
'MODULE_PAYMENT_IPAYMENT_ZONE', 'MODULE_PAYMENT_IPAYMENT_ORDER_STATUS_ID',
'MODULE_PAYMENT_IPAYMENT_SORT_ORDER');
}
}
?>
Index: moneyorder.php
===================================================================
RCS file: /cvsroot/tep/catalog/catalog/includes/modules/payment/moneyorder.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- moneyorder.php 14 Jan 2003 00:10:38 -0000 1.6
+++ moneyorder.php 14 Jan 2003 03:21:51 -0000 1.7
@@ -20,6 +20,7 @@
$this->code = 'moneyorder';
$this->title = MODULE_PAYMENT_MONEYORDER_TEXT_TITLE;
$this->description = MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION;
+ $this->sort_order = MODULE_PAYMENT_MONEYORDER_SORT_ORDER;
$this->enabled = ((MODULE_PAYMENT_MONEYORDER_STATUS == 'True') ? true :
false);
if ((int)MODULE_PAYMENT_MONEYORDER_ORDER_STATUS_ID > 0) {
@@ -91,6 +92,7 @@
function install() {
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
date_added) values ('Enable Check/Money Order Module',
'MODULE_PAYMENT_MONEYORDER_STATUS', 'True', 'Do you want to accept Check/Money
Order payments?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'),
', now());");
+ tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, date_added)
values ('Sort order of display.', 'MODULE_PAYMENT_MONEYORDER_SORT_ORDER', '0',
'Sort order of display. Lowest is displayed first.', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, use_function,
set_function, date_added) values ('Payment Zone',
'MODULE_PAYMENT_MONEYORDER_ZONE', '0', 'If a zone is selected, only enable this
payment method for that zone.', '6', '2', 'tep_get_zone_class_title',
'tep_cfg_pull_down_zone_classes(', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
use_function, date_added) values ('Set Order Status',
'MODULE_PAYMENT_MONEYORDER_ORDER_STATUS_ID', '0', 'Set the status of orders
made with this payment module to this value', '6', '0',
'tep_cfg_pull_down_order_statuses(', 'tep_get_order_Status_name', now())");
}
@@ -100,7 +102,7 @@
}
function keys() {
- return array('MODULE_PAYMENT_MONEYORDER_STATUS',
'MODULE_PAYMENT_MONEYORDER_ZONE', 'MODULE_PAYMENT_MONEYORDER_ORDER_STATUS_ID');
+ return array('MODULE_PAYMENT_MONEYORDER_STATUS',
'MODULE_PAYMENT_MONEYORDER_ZONE', 'MODULE_PAYMENT_MONEYORDER_ORDER_STATUS_ID',
'MODULE_PAYMENT_MONEYORDER_SORT_ORDER');
}
}
-?>
\ No newline at end of file
+?>
Index: nochex.php
===================================================================
RCS file: /cvsroot/tep/catalog/catalog/includes/modules/payment/nochex.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- nochex.php 14 Jan 2003 00:10:39 -0000 1.9
+++ nochex.php 14 Jan 2003 03:21:51 -0000 1.10
@@ -20,6 +20,7 @@
$this->code = 'nochex';
$this->title = MODULE_PAYMENT_NOCHEX_TEXT_TITLE;
$this->description = MODULE_PAYMENT_NOCHEX_TEXT_DESCRIPTION;
+ $this->sort_order = MODULE_PAYMENT_NOCHEX_SORT_ORDER;
$this->enabled = ((MODULE_PAYMENT_NOCHEX_STATUS == 'True') ? true :
false);
if ((int)MODULE_PAYMENT_NOCHEX_ORDER_STATUS_ID > 0) {
@@ -101,6 +102,7 @@
function install() {
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
date_added) values ('Enable NOCHEX Module', 'MODULE_PAYMENT_NOCHEX_STATUS',
'True', 'Do you want to accept NOCHEX payments?', '6', '3',
'tep_cfg_select_option(array(\'True\', \'False\'), ', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, date_added)
values ('E-Mail Address', 'MODULE_PAYMENT_NOCHEX_ID',
'you-0/H1Xqmg7/hi3DnVkjdj9g@xxxxxxxxxxxxxxxx', 'The e-mail address to use for
the NOCHEX service', '6', '4', now())");
+ tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, date_added)
values ('Sort order of display.', 'MODULE_PAYMENT_NOCHEX_SORT_ORDER', '0',
'Sort order of display. Lowest is displayed first.', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, use_function,
set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_NOCHEX_ZONE',
'0', 'If a zone is selected, only enable this payment method for that zone.',
'6', '2', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(',
now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
use_function, date_added) values ('Set Order Status',
'MODULE_PAYMENT_NOCHEX_ORDER_STATUS_ID', '0', 'Set the status of orders made
with this payment module to this value', '6', '0',
'tep_cfg_pull_down_order_statuses(', 'tep_get_order_Status_name', now())");
}
@@ -110,7 +112,7 @@
}
function keys() {
- return array('MODULE_PAYMENT_NOCHEX_STATUS', 'MODULE_PAYMENT_NOCHEX_ID',
'MODULE_PAYMENT_NOCHEX_ZONE', 'MODULE_PAYMENT_NOCHEX_ORDER_STATUS_ID');
+ return array('MODULE_PAYMENT_NOCHEX_STATUS', 'MODULE_PAYMENT_NOCHEX_ID',
'MODULE_PAYMENT_NOCHEX_ZONE', 'MODULE_PAYMENT_NOCHEX_ORDER_STATUS_ID',
'MODULE_PAYMENT_NOCHEX_SORT_ORDER');
}
}
?>
Index: paypal.php
===================================================================
RCS file: /cvsroot/tep/catalog/catalog/includes/modules/payment/paypal.php,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- paypal.php 14 Jan 2003 00:10:39 -0000 1.36
+++ paypal.php 14 Jan 2003 03:21:51 -0000 1.37
@@ -20,6 +20,7 @@
$this->code = 'paypal';
$this->title = MODULE_PAYMENT_PAYPAL_TEXT_TITLE;
$this->description = MODULE_PAYMENT_PAYPAL_TEXT_DESCRIPTION;
+ $this->sort_order = MODULE_PAYMENT_PAYPAL_SORT_ORDER;
$this->enabled = ((MODULE_PAYMENT_PAYPAL_STATUS == 'True') ? true :
false);
if ((int)MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID > 0) {
@@ -112,6 +113,7 @@
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
date_added) values ('Enable PayPal Module', 'MODULE_PAYMENT_PAYPAL_STATUS',
'True', 'Do you want to accept PayPal payments?', '6', '3',
'tep_cfg_select_option(array(\'True\', \'False\'), ', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, date_added)
values ('E-Mail Address', 'MODULE_PAYMENT_PAYPAL_ID',
'you-kees+IjogN1i3DnVkjdj9g@xxxxxxxxxxxxxxxx', 'The e-mail address to use for
the PayPal service', '6', '4', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
date_added) values ('Transaction Currency', 'MODULE_PAYMENT_PAYPAL_CURRENCY',
'Selected Currency', 'The currency to use for credit card transactions', '6',
'6', 'tep_cfg_select_option(array(\'Selected Currency\',\'Only USD\',\'Only
CAD\',\'Only EUR\',\'Only GBP\',\'Only JPY\'), ', now())");
+ tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, date_added)
values ('Sort order of display.', 'MODULE_PAYMENT_PAYPAL_SORT_ORDER', '0',
'Sort order of display. Lowest is displayed first.', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, use_function,
set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_PAYPAL_ZONE',
'0', 'If a zone is selected, only enable this payment method for that zone.',
'6', '2', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(',
now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
use_function, date_added) values ('Set Order Status',
'MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID', '0', 'Set the status of orders made
with this payment module to this value', '6', '0',
'tep_cfg_pull_down_order_statuses(', 'tep_get_order_Status_name', now())");
}
@@ -121,7 +123,7 @@
}
function keys() {
- return array('MODULE_PAYMENT_PAYPAL_STATUS', 'MODULE_PAYMENT_PAYPAL_ID',
'MODULE_PAYMENT_PAYPAL_CURRENCY', 'MODULE_PAYMENT_PAYPAL_ZONE',
'MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID');
+ return array('MODULE_PAYMENT_PAYPAL_STATUS', 'MODULE_PAYMENT_PAYPAL_ID',
'MODULE_PAYMENT_PAYPAL_CURRENCY', 'MODULE_PAYMENT_PAYPAL_ZONE',
'MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID', 'MODULE_PAYMENT_PAYPAL_SORT_ORDER');
}
}
?>
Index: pm2checkout.php
===================================================================
RCS file:
/cvsroot/tep/catalog/catalog/includes/modules/payment/pm2checkout.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- pm2checkout.php 14 Jan 2003 00:10:39 -0000 1.16
+++ pm2checkout.php 14 Jan 2003 03:21:51 -0000 1.17
@@ -20,6 +20,7 @@
$this->code = 'pm2checkout';
$this->title = MODULE_PAYMENT_2CHECKOUT_TEXT_TITLE;
$this->description = MODULE_PAYMENT_2CHECKOUT_TEXT_DESCRIPTION;
+ $this->sort_order = MODULE_PAYMENT_2CHECKOUT_SORT_ORDER;
$this->enabled = ((MODULE_PAYMENT_2CHECKOUT_STATUS == 'True') ? true :
false);
if ((int)MODULE_PAYMENT_2CHECKOUT_ORDER_STATUS_ID > 0) {
@@ -203,6 +204,7 @@
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, date_added)
values ('Login/Store Number', 'MODULE_PAYMENT_2CHECKOUT_LOGIN', '18157',
'Login/Store Number used for the 2CheckOut service', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
date_added) values ('Transaction Mode', 'MODULE_PAYMENT_2CHECKOUT_TESTMODE',
'Test', 'Transaction mode used for the 2Checkout service', '6', '0',
'tep_cfg_select_option(array(\'Test\', \'Production\'), ', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
date_added) values ('Merchant Notifications',
'MODULE_PAYMENT_2CHECKOUT_EMAIL_MERCHANT', 'True', 'Should 2CheckOut e-mail a
receipt to the store owner?', '6', '0', 'tep_cfg_select_option(array(\'True\',
\'False\'), ', now())");
+ tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, date_added)
values ('Sort order of display.', 'MODULE_PAYMENT_2CHECKOUT_SORT_ORDER', '0',
'Sort order of display. Lowest is displayed first.', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, use_function,
set_function, date_added) values ('Payment Zone',
'MODULE_PAYMENT_2CHECKOUT_ZONE', '0', 'If a zone is selected, only enable this
payment method for that zone.', '6', '2', 'tep_get_zone_class_title',
'tep_cfg_pull_down_zone_classes(', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
use_function, date_added) values ('Set Order Status',
'MODULE_PAYMENT_2CHECKOUT_ORDER_STATUS_ID', '0', 'Set the status of orders made
with this payment module to this value', '6', '0',
'tep_cfg_pull_down_order_statuses(', 'tep_get_order_Status_name', now())");
}
@@ -212,7 +214,7 @@
}
function keys() {
- return array('MODULE_PAYMENT_2CHECKOUT_STATUS',
'MODULE_PAYMENT_2CHECKOUT_LOGIN', 'MODULE_PAYMENT_2CHECKOUT_TESTMODE',
'MODULE_PAYMENT_2CHECKOUT_EMAIL_MERCHANT', 'MODULE_PAYMENT_2CHECKOUT_ZONE',
'MODULE_PAYMENT_2CHECKOUT_ORDER_STATUS_ID');
+ return array('MODULE_PAYMENT_2CHECKOUT_STATUS',
'MODULE_PAYMENT_2CHECKOUT_LOGIN', 'MODULE_PAYMENT_2CHECKOUT_TESTMODE',
'MODULE_PAYMENT_2CHECKOUT_EMAIL_MERCHANT', 'MODULE_PAYMENT_2CHECKOUT_ZONE',
'MODULE_PAYMENT_2CHECKOUT_ORDER_STATUS_ID',
'MODULE_PAYMENT_2CHECKOUT_SORT_ORDER');
}
}
?>
Index: psigate.php
===================================================================
RCS file: /cvsroot/tep/catalog/catalog/includes/modules/payment/psigate.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- psigate.php 14 Jan 2003 00:10:40 -0000 1.13
+++ psigate.php 14 Jan 2003 03:21:51 -0000 1.14
@@ -20,6 +20,7 @@
$this->code = 'psigate';
$this->title = MODULE_PAYMENT_PSIGATE_TEXT_TITLE;
$this->description = MODULE_PAYMENT_PSIGATE_TEXT_DESCRIPTION;
+ $this->sort_order = MODULE_PAYMENT_PSIGATE_SORT_ORDER;
$this->enabled = ((MODULE_PAYMENT_PSIGATE_STATUS == 'True') ? true :
false);
if ((int)MODULE_PAYMENT_PSIGATE_ORDER_STATUS_ID > 0) {
@@ -251,6 +252,7 @@
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
date_added) values ('Transaction Type',
'MODULE_PAYMENT_PSIGATE_TRANSACTION_TYPE', 'PreAuth', 'Transaction type to use
for the PSiGate service', '6', '4', 'tep_cfg_select_option(array(\'Sale\',
\'PreAuth\', \'PostAuth\'), ', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
date_added) values ('Credit Card Collection',
'MODULE_PAYMENT_PSIGATE_INPUT_MODE', 'Local', 'Should the credit card details
be collected locally or remotely at PSiGate?', '6', '5',
'tep_cfg_select_option(array(\'Local\', \'Remote\'), ', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
date_added) values ('Transaction Currency', 'MODULE_PAYMENT_PSIGATE_CURRENCY',
'USD', 'The currency to use for credit card transactions', '6', '6',
'tep_cfg_select_option(array(\'CAD\', \'USD\'), ', now())");
+ tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, date_added)
values ('Sort order of display.', 'MODULE_PAYMENT_PSIGATE_SORT_ORDER', '0',
'Sort order of display. Lowest is displayed first.', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, use_function,
set_function, date_added) values ('Payment Zone',
'MODULE_PAYMENT_PSIGATE_ZONE', '0', 'If a zone is selected, only enable this
payment method for that zone.', '6', '2', 'tep_get_zone_class_title',
'tep_cfg_pull_down_zone_classes(', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
use_function, date_added) values ('Set Order Status',
'MODULE_PAYMENT_PSIGATE_ORDER_STATUS_ID', '0', 'Set the status of orders made
with this payment module to this value', '6', '0',
'tep_cfg_pull_down_order_statuses(', 'tep_get_order_Status_name', now())");
}
@@ -260,7 +262,7 @@
}
function keys() {
- return array('MODULE_PAYMENT_PSIGATE_STATUS',
'MODULE_PAYMENT_PSIGATE_MERCHANT_ID',
'MODULE_PAYMENT_PSIGATE_TRANSACTION_MODE',
'MODULE_PAYMENT_PSIGATE_TRANSACTION_TYPE', 'MODULE_PAYMENT_PSIGATE_INPUT_MODE',
'MODULE_PAYMENT_PSIGATE_CURRENCY', 'MODULE_PAYMENT_PSIGATE_ZONE',
'MODULE_PAYMENT_PSIGATE_ORDER_STATUS_ID');
+ return array('MODULE_PAYMENT_PSIGATE_STATUS',
'MODULE_PAYMENT_PSIGATE_MERCHANT_ID',
'MODULE_PAYMENT_PSIGATE_TRANSACTION_MODE',
'MODULE_PAYMENT_PSIGATE_TRANSACTION_TYPE', 'MODULE_PAYMENT_PSIGATE_INPUT_MODE',
'MODULE_PAYMENT_PSIGATE_CURRENCY', 'MODULE_PAYMENT_PSIGATE_ZONE',
'MODULE_PAYMENT_PSIGATE_ORDER_STATUS_ID', 'MODULE_PAYMENT_PSIGATE_SORT_ORDER');
}
}
?>
Index: secpay.php
===================================================================
RCS file: /cvsroot/tep/catalog/catalog/includes/modules/payment/secpay.php,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- secpay.php 14 Jan 2003 00:10:40 -0000 1.28
+++ secpay.php 14 Jan 2003 03:21:51 -0000 1.29
@@ -20,6 +20,7 @@
$this->code = 'secpay';
$this->title = MODULE_PAYMENT_SECPAY_TEXT_TITLE;
$this->description = MODULE_PAYMENT_SECPAY_TEXT_DESCRIPTION;
+ $this->sort_order = MODULE_PAYMENT_SECPAY_SORT_ORDER;
$this->enabled = ((MODULE_PAYMENT_SECPAY_STATUS == 'True') ? true :
false);
if ((int)MODULE_PAYMENT_SECPAY_ORDER_STATUS_ID > 0) {
@@ -165,6 +166,7 @@
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, date_added)
values ('Merchant ID', 'MODULE_PAYMENT_SECPAY_MERCHANT_ID', 'secpay', 'Merchant
ID to use for the SECPay service', '6', '2', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
date_added) values ('Transaction Currency', 'MODULE_PAYMENT_SECPAY_CURRENCY',
'Any Currency', 'The currency to use for credit card transactions', '6', '3',
'tep_cfg_select_option(array(\'Any Currency\', \'Default Currency\'), ',
now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
date_added) values ('Transaction Mode', 'MODULE_PAYMENT_SECPAY_TEST_STATUS',
'Always Successful', 'Transaction mode to use for the SECPay service', '6',
'4', 'tep_cfg_select_option(array(\'Always Successful\', \'Always Fail\',
\'Production\'), ', now())");
+ tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, date_added)
values ('Sort order of display.', 'MODULE_PAYMENT_SECPAY_SORT_ORDER', '0',
'Sort order of display. Lowest is displayed first.', '6', '0', now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, use_function,
set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_SECPAY_ZONE',
'0', 'If a zone is selected, only enable this payment method for that zone.',
'6', '2', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(',
now())");
tep_db_query("insert into " . TABLE_CONFIGURATION . "
(configuration_title, configuration_key, configuration_value,
configuration_description, configuration_group_id, sort_order, set_function,
use_function, date_added) values ('Set Order Status',
'MODULE_PAYMENT_SECPAY_ORDER_STATUS_ID', '0', 'Set the status of orders made
with this payment module to this value', '6', '0',
'tep_cfg_pull_down_order_statuses(', 'tep_get_order_Status_name', now())");
}
@@ -174,7 +176,7 @@
}
function keys() {
- return array('MODULE_PAYMENT_SECPAY_STATUS',
'MODULE_PAYMENT_SECPAY_MERCHANT_ID', 'MODULE_PAYMENT_SECPAY_CURRENCY',
'MODULE_PAYMENT_SECPAY_TEST_STATUS', 'MODULE_PAYMENT_SECPAY_ZONE',
'MODULE_PAYMENT_SECPAY_ORDER_STATUS_ID');
+ return array('MODULE_PAYMENT_SECPAY_STATUS',
'MODULE_PAYMENT_SECPAY_MERCHANT_ID', 'MODULE_PAYMENT_SECPAY_CURRENCY',
'MODULE_PAYMENT_SECPAY_TEST_STATUS', 'MODULE_PAYMENT_SECPAY_ZONE',
'MODULE_PAYMENT_SECPAY_ORDER_STATUS_ID', 'MODULE_PAYMENT_SECPAY_SORT_ORDER');
}
}
?>
-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
|