You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
2.0 KiB
PHP

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php
/**
* 配置账号信息
*/
class WxPayConf_pub
{
//=======【基本信息设置】=====================================
//微信公众号身份的唯一标识。审核通过后,在微信发送的邮件中查
/**
* TODO: 修改这里配置为您自己申请的商户信息
* 微信公众号信息配置
*
* APPID绑定支付的APPID必须配置开户邮件中可查看
*
* MCHID商户号必须配置开户邮件中可查看
*
* KEY商户支付密钥参考开户邮件设置必须配置登录商户平台自行设置
* 设置地址https://pay.weixin.qq.com/index.php/account/api_cert
*
* APPSECRET公众帐号secert仅JSAPI支付的时候需要配置 登录公众平台,进入开发者中心可设置),
* 获取地址https://mp.weixin.qq.com/advanced/advanced?action=dev&t=advanced/dev&token=2005451881&lang=zh_CN
* @var string
*/
//=======【JSAPI路径设置】===================================
//获取access_token过程中的跳转uri通过跳转将code传入jsapi支付页面
const JS_API_CALL_URL = 'http://www.xxxxxx.com/demo/js_api_call.php';
//=======【证书路径设置】=====================================
//证书路径,注意应该填写绝对路径
// const SSLCERT_PATH = './cacert/apiclient_cert.pem';
// const SSLKEY_PATH = './cacert/apiclient_key.pem';
const SSLCERT_PATH = 'E:\phpStudy\WWW\sy3.0\ThinkPHP\Library\Vendor\WxPayPubHelper\cacert\apiclient_cert.pem';
const SSLKEY_PATH = 'E:\phpStudy\WWW\sy3.0\ThinkPHP\Library\Vendor\WxPayPubHelper\cacert\apiclient_key.pem';
//=======【异步通知url设置】===================================
//异步通知url商户根据实际开发过程设定
// const NOTIFY_URL = 'http://local.newyy.com/server.php/CallBack/notify/apitype/wxpay_callback/method/notify';
//=======【curl超时设置】===================================
//本例程通过curl使用HTTP POST方法此处可修改其超时时间默认为30秒
const CURL_TIMEOUT = 30;
}
?>