function configure($key) { switch ($key) { case 'MODULE_PAYMENT_NOVA_XML_TESTMODE': $temp = array(array('id' => 'Test', 'text' => TEXT_TEST), array('id' => 'Production', 'text' => TEXT_PRODUCTION)); return html_pull_down_menu(strtolower($key), $temp, constant($key)); case 'MODULE_PAYMENT_NOVA_XML_AUTHORIZATION_TYPE': $temp = array(array('id' => 'Authorize', 'text' => TEXT_AUTHORIZE), array('id' => 'Authorize/Capture', 'text' => TEXT_CAPTURE)); return html_pull_down_menu(strtolower($key), $temp, constant($key)); default: return parent::configure($key); } }
function configure($key) { switch ($key) { case 'MODULE_PAYMENT_PAYPAL_NVP_TESTMODE': $temp = array(array('id' => 'sandbox', 'text' => TEXT_TEST), array('id' => 'live', 'text' => TEXT_PRODUCTION)); return html_pull_down_menu(strtolower($key), $temp, constant($key)); case 'MODULE_PAYMENT_PAYPAL_NVP_AUTHORIZATION_TYPE': $temp = array(array('id' => 'Authorization', 'text' => TEXT_AUTHORIZE), array('id' => 'Sale', 'text' => TEXT_CAPTURE)); return html_pull_down_menu(strtolower($key), $temp, constant($key)); default: return parent::configure($key); } }
function configure($key) { switch ($key) { case 'MODULE_PAYMENT_LINKPOINT_API_TRANSACTION_MODE_RESPONSE': $temp = array(array('id' => 'LIVE: Production', 'text' => TEXT_PRODUCTION), array('id' => 'TESTING: Successful', 'text' => TEXT_TEST_SUCCESS), array('id' => 'TESTING: Decline', 'text' => TEXT_TEST_FAIL)); return html_pull_down_menu(strtolower($key), $temp, constant($key)); case 'MODULE_PAYMENT_LINKPOINT_API_AUTHORIZATION_MODE': $temp = array(array('id' => 'Authorize Only', 'text' => TEXT_AUTHORIZE), array('id' => 'Immediate Charge/Capture', 'text' => TEXT_CAPTURE)); return html_pull_down_menu(strtolower($key), $temp, constant($key)); case 'MODULE_PAYMENT_LINKPOINT_API_FRAUD_ALERT': case 'MODULE_PAYMENT_LINKPOINT_API_STORE_DATA': $temp = array(array('id' => '0', 'text' => TEXT_NO), array('id' => '1', 'text' => TEXT_YES)); return html_pull_down_menu(strtolower($key), $temp, constant($key)); case 'MODULE_PAYMENT_LINKPOINT_API_TRANSACTION_MODE': $temp = array(array('id' => 'Production', 'text' => TEXT_PRODUCTION), array('id' => 'DevelopersTest', 'text' => TEXT_DEV_TEST)); return html_pull_down_menu(strtolower($key), $temp, constant($key)); case 'MODULE_PAYMENT_LINKPOINT_API_DEBUG': $temp = array(array('id' => 'Off', 'text' => TEXT_OFF), array('id' => 'Failure Alerts Only', 'text' => TEXT_FAIL_ALERTS), array('id' => 'Log File', 'text' => TEXT_LOG_FILE), array('id' => 'Log and Email', 'text' => TEXT_LOG_EMAIL)); return html_pull_down_menu(strtolower($key), $temp, constant($key)); default: return parent::configure($key); } }