Files
Epay/plugins/codepay/inc/codepay_config.php
2020-02-21 16:21:31 +08:00

34 lines
1.4 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
#码支付接口配置
$codepay_config['id'] = $channel['appid'];
$codepay_config['key'] = $channel['appkey'];
//字符编码格式 目前支持 gbk GB2312 或 utf-8 保证跟文档编码一致 建议使用utf-8
$codepay_config['chart'] = strtolower('utf-8');
//是否启用免挂机模式 1为启用. 未开通请勿更改否则资金无法及时到账
$codepay_config['act'] = "0"; //认证版则开启 一般情况都为0
/**订单支付页面显示方式
* 1: GET框架云端支付 (简单 兼容性强 自动升级 1分钟可集成)
* 2: POST表单到云端支付 (简单 兼容性强 自动升级)
* 3自定义开发模式 (默认 复杂 需要一定开发能力 手动升级 html/codepay_diy_order.php修改收银台代码)
* 4高级模式(复杂 需要较强的开发能力 手动升级 html/codepay_supper_order.php修改收银台代码)
*/
$codepay_config['page'] = 4; //支付页面展示方式
//支付页面风格样式 仅针对$codepay_config['page'] 参数为 1或2 才会有用。
$codepay_config['style'] = 1; //暂时保留的功能 后期会生效 留意官网发布的风格编号
//二维码超时设置 单位:秒
$codepay_config['outTime'] = 300;//360秒=6分钟 最小值60 不建议太长 否则会影响其他人支付
//最低金额限制
$codepay_config['min'] = 0.01;
//$codepay_config["qrcode_url"] = "./codepay/qrcode.php"; //使用本地二维码
$codepay_config['pay_type'] = 1;