WHMCS在哪里存储附加模块的数据/信息?
<?php
if (!defined("WHMCS")) {
exit("This file cannot be accessed directly");
}
require_once(ROOTDIR . '/modules/gateways/fasterpay/helpers/FasterpayHelper.php');
require_once(ROOTDIR . '/modules/gateways/fasterpay/FasterpayGateway.php');
function fasterpay_MetaData()
{
return array(
'DisplayName' => 'Fasterpay',
'APIVersion' => '1.1', // Use API Version 1.1
'DisableLocalCreditCardInput' => false,
'TokenisedStorage' => false,
);
}
function fasterpay_config()
{
$configs = array(
"FriendlyName" => array("Type" => "System", "Value" => "Fasterpay"),
"UsageNotes" => array("Type" => "System", "Value" => "Please read the documentation to get more informations"),
"appKey" => array("FriendlyName" => "Public Key", "Type" => "text", "Size" => "40"),
"secretKey" => array("FriendlyName" => "Private Key", "Type" => "text", "Size" => "40"),
"success_url" => array("FriendlyName" => "Success Url", "Type" => "text", "Size" => "200")
);
return $configs;
}
function fasterpay_link($params)
{
$fasterpayGateway = new Fasterpay_Gateway();
$parameters = $fasterpayGateway->prepareData($params);
$code = $fasterpayGateway->buildForm($parameters);
return $code;
}
我的主要插件模块文件中包含此代码。而且我在数据库中找不到可以保存这些数据的表。 数据将在管理面板的“付款”部分中提供。
答案 0 :(得分:0)
“付款”网关的配置值已保存到表tblpaymentgateways
中。
例如,下面是名称配置(显示名称)行:
| id | gateway | setting | value | order |
|----|--------------|---------|---------------|-------|
| 3 | banktransfer | name | Bank Transfer | 1 |