WSTMart 支付功能表说明(wst_payments表)

需要注意的是,如果需要添加其他支付方式,如“银联支付”,步骤如下:

1.需要往wst_payments表中添加一条记录,payCode 就是支付方式标识【unionpays】,命名规则采用全小写;

2.添加完记录后,要在 wstmart/admin/view/payments 目录下新建一个 pay_unionpays.html 【pay_表中payCode值】文件,用于“银联支付”参数配置;

3.在对应的模块下创建支付控制器文件,以home模块为例,创建 wstmart/home/controller/Unionpays.php ,文件名就是payCode字段值的首字母大写,在此控件器实现“银联支付”相关业务逻辑;


在线支付相关文件:

home模块:


wstmart/home/controller/Alipays.php --支付宝支付

wstmart/home/controller/Weixinpays.php  --微信支付


mobile模块:

wstmart/mobile/controller/Alipays.php --支付宝支付


wechat模块:

wstmart/wechat/controller/Weixinpays.php  --微信支付


注:WSTMart 系统中在线支付所有支付方式回调接口统一调用 wstmart/common/model/Orders.php 的 “complatePay” 方法;