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;
}我在我的主插件模块文件中有这段代码。并且我在数据库中找不到保存此数据的表。而数据是提供在管理面板,付款的这个模块部分。
发布于 2019-07-01 16:31:24
支付网关的配置值将保存到表tblpaymentgateways中。例如,下面是名称config (显示名称)的行:
| id | gateway | setting | value | order |
|----|--------------|---------|---------------|-------|
| 3 | banktransfer | name | Bank Transfer | 1 |https://stackoverflow.com/questions/56672653
复制相似问题