本文整理匯總了PHP中payment::configure方法的典型用法代碼示例。如果您正苦於以下問題:PHP payment::configure方法的具體用法?PHP payment::configure怎麽用?PHP payment::configure使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類payment
的用法示例。
在下文中一共展示了payment::configure方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: configure
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);
}
}
示例2: configure
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);
}
}