读书人

prestashop二次开发 札记(支付插件

发布时间: 2013-10-13 14:03:53 作者: rapoo

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 欢迎交流讨论。




读书人网 >编程

热点推荐