方法一:免安装证书接口ASP微信公众号支付接口源码对接
在线测试支付效果(微信扫码测试公众号支付效果)
接口对接服务热线:180-687-28630 QQ:120094883
|
方法二:安装证书版
1、首先需要安装证书
到微软官方下载winhttpcertcfg.exe
下载地址:http://www.microsoft.com/en-us/download/details.aspx?id=19801
使用说明:https://msdn.microsoft.com/en-us/library/aa384088.aspx#_using
选择一个位置安装即可,为了方便输入,建议安装到:C:\cert_tools\
2、安装证书
安装第一步的工具后,执行以下命令,即可安装证书成功。
假如 证书工具安装在C:\cert_tools\,证书放在 D:\Project\WechatASP
2.1、导入证书
C:\cert_tools\winhttpcertcfg -g -i "D:\Project\WechatASP\apiclient_cert.p12" -c LOCAL_MACHINE\My -a "Network Service" -p 微信商户ID
如果成功会提示:
|
Microsoft (R) WinHTTP Certificate Configuration Tool
Copyright (C) Microsoft Corporation 2001.
Imported certificate:
SN=12xxxxxx
CN=有限公司
OU=MMPay
O=Tencent
L=Shenzhen
S=Guangdong
C=CN
|
2.2、设置 Network Serivce 拥有证书使用权限
C:\cert_tools\winhttpcertcfg -g -c LOCAL_MACHINE\My -s "MMPay" -a "Network Service"
如果成功会提示:
|
Microsoft (R) WinHTTP Certificate Configuration Tool
Copyright (C) Microsoft Corporation 2001.
Matching certificate:
SN=12xxxxxx
CN=有限公司
OU=MMPay
O=Tencent
L=Shenzhen
S=Guangdong
C=CN
Private key access has already been granted for account:
NT AUTHORITY\NETWORK SERVICE
|
2.3、设置 Everyone 拥有证书使用权限
C:\cert_tools\winhttpcertcfg -g -c LOCAL_MACHINE\My -s "MMPay" -a "EveryOne"
如果成功会提示
上一篇: 微信公众号支付ASP源码下载1(类文件)
下一篇:JSP 连接MySQL数据库
QQ客服
公众号
手机版
帮助中心