ZLW-PC\Administrator
7 years ago
18 changed files with 164 additions and 104 deletions
-
10app/Common/function.php
-
1app/Http/Controllers/Api/UserController.php
-
3app/Http/Controllers/Api/UserRechargeController.php
-
21app/Http/Controllers/Home/IndexController.php
-
4app/Http/Controllers/Weixin/OrderController.php
-
4app/Http/Controllers/Weixin/UserController.php
-
71app/Http/Controllers/Weixin/WxPayController.php
-
1app/Http/Model/User.php
-
2resources/org/wxpay/WxPayConfig.php
-
BINresources/org/wxpay/cert/apiclient_cert.p12
-
48resources/org/wxpay/cert/apiclient_cert.pem
-
52resources/org/wxpay/cert/apiclient_key.pem
-
18resources/org/wxpay/cert/证书使用说明.txt
-
8resources/views/weixin/order/orderWxpay.blade.php
-
6resources/views/weixin/user/index.blade.php
-
4resources/views/weixin/user/userRechargeOrder.blade.php
-
8resources/views/weixin/user/userRechargeOrderDetail.blade.php
-
7routes/web.php
Binary file not shown.
@ -1,26 +1,26 @@ |
|||
-----BEGIN CERTIFICATE----- |
|||
MIIEXzCCA8igAwIBAgIDEN9AMA0GCSqGSIb3DQEBBQUAMIGKMQswCQYDVQQGEwJD |
|||
TjESMBAGA1UECBMJR3Vhbmdkb25nMREwDwYDVQQHEwhTaGVuemhlbjEQMA4GA1UE |
|||
ChMHVGVuY2VudDEMMAoGA1UECxMDV1hHMRMwEQYDVQQDEwpNbXBheW1jaENBMR8w |
|||
HQYJKoZIhvcNAQkBFhBtbXBheW1jaEB0ZW5jZW50MB4XDTE2MDIwMzExNDg1OVoX |
|||
DTI2MDEzMTExNDg1OVowgY8xCzAJBgNVBAYTAkNOMRIwEAYDVQQIEwlHdWFuZ2Rv |
|||
bmcxETAPBgNVBAcTCFNoZW56aGVuMRAwDgYDVQQKEwdUZW5jZW50MQ4wDAYDVQQL |
|||
EwVNTVBheTEkMCIGA1UEAxQb6Ieq5Yqo5YyW5rWL6K+V5ZWG5oi35ZCN56ewMREw |
|||
DwYDVQQEEwgxMTM4NDEzMzCCASIwDQYJKoZIhvcNAQEBBQADgg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A6EUQDQtvOs0yjwL1 |
|||
D5PMOFTkk80sfhOb9/6NJW3kmSyXokIJp6i5i8gzcW3F7riKiWUguByU2qKDAC58 |
|||
DE/n7fpH6X4csWDfAp0QCrHH0bSg3ihLYaIU15xecsDXUfnJ1N//4dri90yKVp9X |
|||
RA1t3sM3SsG8iXHNALpjMOYjSAcCgYEAzs1sY32ALyKuUNAq1GK3VkGuu8URVNw1 |
|||
bTLMjPKIqAx8HpfqBdHdVgUsXKp9LALjz2PPJkChf/WjUje3NIb+5gSUUkYsOzXm |
|||
PZyyAWJF8iXUgEzYRLfG0ZGzR5pHlX6EpYqkjplo1AYLhiTA5WP0avkExAvvtTwx |
|||
fJv1rTeofY0CgYBthRMac4fRHCx4zpYq8C/dZ/oXzyjpkel7OCXpvjWKHEKrmaPf |
|||
0GkdBhtroq0v8Qgx3ONerOtrZDGNBl4rmAnuZpM9/98brGe7Xb/Qqx9jPF6WIj3Z |
|||
HYniWLMYPOHKn5ORssV/A6z9mrOoQJ3vUr25yibqMwvpayWU8E4RIpMERQKBgDtc |
|||
hAxa7fyZu+e+mUy1uWKtH/cOLldpjnx15Hlg9REn5Ejz2l0pTJtwiLdgyOVlPvc8 |
|||
8y1LyA/u9p6XF6OgTHLCRcEIG5Izeo+c9wumpeVILqNVa47uIcfuRsP66SlkU7ch |
|||
APNd3dVeltg+nJA8DODX8iJEOt6PFLVsHy1FmLvRAoGAZKsYMzugvM28Bdj2TqGp |
|||
nQu3hRXtTLU5/x5zRKzxeftxFCK9ewcM0x6ciNCwAWszJS+HuDJ7CzWw7DVe8Y8K |
|||
HZm4cOnAAtaS9NlxWMXGKGo5sI/mvuY6rAuU/Xy9g3C3172NMojwC52Zsg+qKZEj |
|||
5aMeDZic+rHd0/jztOsxMX8= |
|||
-----END PRIVATE KEY----- |
@ -0,0 +1,18 @@ |
|||
欢迎使用微信支付! |
|||
附件中的三份文件(证书pkcs12格式、证书pem格式、证书密钥pem格式),为接口中强制要求时需携带的证书文件。 |
|||
证书属于敏感信息,请妥善保管不要泄露和被他人复制。 |
|||
不同开发语言下的证书格式不同,以下为说明指引: |
|||
证书pkcs12格式(apiclient_cert.p12) |
|||
包含了私钥信息的证书文件,为p12(pfx)格式,由微信支付签发给您用来标识和界定您的身份 |
|||
部分安全性要求较高的API需要使用该证书来确认您的调用身份 |
|||
windows上可以直接双击导入系统,导入过程中会提示输入证书密码,证书密码默认为您的商户ID(如:10010000) |
|||
证书pem格式(apiclient_cert.pem) |
|||
从apiclient_cert.p12中导出证书部分的文件,为pem格式,请妥善保管不要泄漏和被他人复制 |
|||
部分开发语言和环境,不能直接使用p12文件,而需要使用pem,所以为了方便您使用,已为您直接提供 |
|||
您也可以使用openssl命令来自己导出:openssl pkcs12 -clcerts -nokeys -in apiclient_cert.p12 -out apiclient_cert.pem |
|||
证书密钥pem格式(apiclient_key.pem) |
|||
从apiclient_cert.p12中导出密钥部分的文件,为pem格式 |
|||
部分开发语言和环境,不能直接使用p12文件,而需要使用pem,所以为了方便您使用,已为您直接提供 |
|||
您也可以使用openssl命令来自己导出:openssl pkcs12 -nocerts -in apiclient_cert.p12 -out apiclient_key.pem |
|||
备注说明: |
|||
由于绝大部分操作系统已内置了微信支付服务器证书的根CA证书, 2018年3月6日后, 不再提供CA证书文件(rootca.pem)下载 |
Write
Preview
Loading…
Cancel
Save
Reference in new issue