当前位置:编程学习 > 网站相关 >>

prestashop二次开发 笔记(支付插件)

 
//主函数
public function __construct()
    {
       
         $this->name = 'CilPay';    //模块名称
        $this->displayName = 'CilPay 讯联支付';   模块显示名称
        $this->tab = 'payments_gateways';   //模块组
        $this->version = 0.8;   //版本号
 
      $config = Configuration::getMultiple(array());   //获取配置页的 参数
 
         $this->page = basename(__FILE__, '.php');   //返回
        $this->description = 'Accept payments with AsiaPay\'s (PayDollar/PesoPay/SiamPay) Payment Service';
 
    }
 
//安装函数
function install()
 {
parent::install(); //默认的安装方法
}
//卸载
function uninstall()
    {
parent::uninstall();
}
 
//支付主方法
function execPayment($cart)
{
}
//配置页 保存函数
private function _postProcess()
{
}
//配置页面布局函数
private function _displaycheckout()
{
}
//配置页  表单函数
private function _displayForm()
{
}
// 额  手有点酸了.     联系QQ:1755503535     欢迎交流讨论。
 
 
补充:综合编程 , 其他综合 ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,