本文整理汇总了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);
}
}