微信支付插件 weixin payment

微信支付插件 weixin payment
QQ group, 50415210 group Shared a free plugin, please check
Technical support to 30171310 @qq.com
Do if you have any other requirements, please contact, thank you.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Pay WeChat plug-in
Tip: before using WeChat pay can only operate in WeChat browser, you can't run in the other browsers, will be prompted to open in WeChat client, please.
1. Set video WeChat public platform
Video address: http://v.youku.com/v_show/id_XMTI5NTY0MjYwMA==.html please select hd
If it is not clear, please baidu network location to download http://pan.baidu.com/s/1bnz26YF
To access the url: https://mp.weixin.qq.com/
WeChat payment development in configuration, configuration to add your url.
Public Settings feature set inside, and JS interface security business domain name is on your site.
Developer center found in web page account, authorized user basic information modification for your website.
2. Set the background system:
Video address: http://v.youku.com/v_show/id_XMTI5NTcxNTI3Mg==.html please select hd
If it is not clear, please baidu network location to download http://pan.baidu.com/s/1sj1bVOT
Pay management partners pay add WeChat plug-in parameters in key ID no WeChat pay merchant application information such as the key
3. The code changes, do not want to do here vqmod plug-in, exercise the modification
QQ群 50415210 群共享有免费插件,请加群查看
技术支持 30171310@qq.com
如有其他做站需求,请联系,谢谢.
--------------------------------------------------------------------------------------------------------------------------------
微信支付插件
使用前的提示:微信支付只能在微信中的浏览器中进行操作,在其他浏览器中是不可以运行的,会提示请在微信客户端打开.
1.微信公众平台设定视频
视频地址: http://v.youku.com/v_show/id_XMTI5NTY0MjYwMA==.html 请选择 高清
如果不清晰,请上百度网盘下载 http://pan.baidu.com/s/1bnz26YF
访问的网址 : https://mp.weixin.qq.com/
微信支付里面的开发配置,支付配置里面添加你的网址.
公众号设置里面功能设置,业务域名和JS接口安全域名都加入你的网址.
开发者中心中找到 网页账号 ,网页授权获取用户基本信息 修改为你的网址.
2.系统后台设定说明:
视频地址: http://v.youku.com/v_show/id_XMTI5NTcxNTI3Mg==.html 请选择 高清
如果不清晰,请上百度网盘下载 http://pan.baidu.com/s/1sj1bVOT
支付管理中 添加微信支付插件的参数 合作伙伴密钥 应用ID 微信支付商户号 应用密钥 等信息
3.代码修改,在这里不想做vqmod插件了,锻炼一下修改代码的能力吧.
在 catalog/controller/common/footer.php 这个文件
在<?php
下面添加
require_once(DIR_APPLICATION."controller/payment/WxPayPubHelper/WxPayPubHelper.php");
require_once(DIR_APPLICATION."controller/payment/WxPayPubHelper/WxPay.pub.config.php");
在public function index() { 下面添加
//设置参数
if($this->config->get('weipay_appid')){
WxPayConf_pub::$APPID = $this->config->get('weipay_appid');
}
if($this->config->get('weipay_mchid')){
WxPayConf_pub::$MCHID = $this->config->get('weipay_mchid');
}
if($this->config->get('weipay_key')){
WxPayConf_pub::$KEY = $this->config->get('weipay_key');
}
if($this->config->get('weipay_appsecret')){
WxPayConf_pub::$APPSECRET = $this->config->get('weipay_appsecret');
}
//使用jsapi接口
$jsApi = new JsApi_pub();
//=========步骤1:网页授权获取用户openid============
//通过code获得openid
if(isset($this->session->data['weixin_openid'])){
}else{
if (!isset($_GET['code']))
{
//触发微信返回code码
$url = $jsApi->createOauthUrlForCode(WxPayConf_pub::JS_API_CALL_URL);
Header("Location: $url");
exit();
}else
{
//获取code码,以获取openid
$code = $_GET['code'];
$jsApi->setCode($code);
$openid = $jsApi->getOpenId();
$this->session->data['weixin_openid'] = $openid;
}
}
--------------------------------------------------------------------------------------------------------------------------------
QQ群 50415210 群共享有免费插件,请加群查看
技术支持 30171310@qq.com
如有其他做站需求,请联系,谢谢.




Price
$35.00

  • Developed by OpenCart Community
  • Documentation Included

Rating

Compatibility
1.5.5.1, 1.5.6, 1.5.6.1, 1.5.6.2, 1.5.6.3, 1.5.6.4, 2.0.0.0, 2.0.1.0, 2.0.1.1, 2.0.2.0, 2.0.3.1, 2.1.0.1

Last Update
24 Nov 2015

Created
24 Nov 2015
2 Sales
2 Comments
lianke
lianke
Member since: 4 May 2012

View all extensions Get Support