Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
IJPay
提交
2d30ef1d
I
IJPay
项目概览
int
/
IJPay
大约 1 年 前同步成功
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
IJPay
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2d30ef1d
编写于
4月 24, 2020
作者:
J
Javen205
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
📝
编写文档
上级
370339db
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
38 addition
and
3 deletion
+38
-3
packages/docs/docs/guide/config/weixinpay_config.md
packages/docs/docs/guide/config/weixinpay_config.md
+17
-2
packages/docs/docs/guide/tools/frp/README.md
packages/docs/docs/guide/tools/frp/README.md
+8
-1
packages/docs/docs/guide/wxpay/api-v3.md
packages/docs/docs/guide/wxpay/api-v3.md
+13
-0
未找到文件。
packages/docs/docs/guide/config/weixinpay_config.md
浏览文件 @
2d30ef1d
...
...
@@ -16,7 +16,7 @@
-
mchId: 微信支付商户号
-
partnerKey: API 密钥,微信商户后台配置
-
certPath:
`apiclient_cert.p12`
证书绝对路径,在微信商户后台下载
-
domain: 外网访问项目的域名,支付通知中会使用
-
domain: 外网访问项目的域名,支付通知
、回调
中会使用
:::
## 服务商模式
...
...
@@ -30,11 +30,26 @@
-
subMchId: 子商户号
-
partnerKey: API 密钥,服务商微信商户后台配置
-
certPath:
`apiclient_cert.p12`
证书绝对路径,在服务商微信商户后台下载
-
domain: 外网访问项目的域名,支付通知中会使用
-
domain: 外网访问项目的域名,支付通知
、回调
中会使用
:::
以上配置并非全部必须,可以根据实际情况来决定。服务商模式下接口请求参数
`openid`
与
`sub_openid`
可以二选一,如果使用了
`openid`
即使用服务商下的应用进行授权就需要提供服务商的应用配置
`appId`
以及
`appSecret`
,
反之就使用子商户对应的应用配置
## v3 版本配置说明
::: tip IJPay 中微信支付需要配置的参数如下:
-
keyPath= apiclient_key.pem 商户 key 绝对路径
-
certPath= capiclient_cert.pem 商户证书绝对路径
-
certP12Path= apiclient_cert.p12 备用参数 v3 暂未使用到
-
platformCertPath= wx_cert.pem 微信平台证书绝对路径,证书需要通过接口获取,请参考
[
v3 文档
](
../wxpay/api-v3.md
)
-
mchId= 微信商户号
-
apiKey3= Api-v3 密钥
-
apiKey= Api 密钥 备用参数 v3 暂未使用到
-
domain= 外网访问项目的域名,支付通知、回调中会使用
:::
packages/docs/docs/guide/tools/frp/README.md
浏览文件 @
2d30ef1d
...
...
@@ -191,4 +191,11 @@ http {
}
}
}
```
\ No newline at end of file
```
## 购买测试服务器
-
[
阿里云主机低至 2 折
](
https://promotion.aliyun.com/ntms/yunparter/invite.html?userCode=b1hkzv2x
)
-
[
腾讯云服务器首年 88
](
https://cloud.tencent.com/act/cps/redirect?redirect=1048&cps_key=a21676d22e4b11a883893d54e158c1d3&from=console
)
-
[
华为云购买享受红利
](
https://activity.huaweicloud.com/discount_area_v5/index.html?&fromuser=aHcxMTc2NTU3MQ==&utm_source=aHcxMTc2NTU3MQ==&utm_medium=cps&utm_campaign=201905
)
\ No newline at end of file
packages/docs/docs/guide/wxpay/api-v3.md
浏览文件 @
2d30ef1d
...
...
@@ -33,6 +33,19 @@ String serialNo = certificate.getSerialNumber().toString(16).toUpperCase();
-
使用证书解析工具
[
https://myssl.com/cert_decode.html
](
https://myssl.com/cert_decode.html
)
:::
## 创建签名
```
java
// 构建签名参数
String
buildSignMessage
=
PayKit
.
buildSignMessage
(
method
,
urlSuffix
,
timestamp
,
nonceStr
,
body
);
// 构建签名参数,也可通过列表传入待签名的参数
String
buildSignMessage
=
PayKit
.
buildSignMessage
(
ArrayList
<
String
>
signMessage
)
// 创建签名
String
signature
=
PayKit
.
createSign
(
buildSignMessage
,
keyPath
);
// 创建签名,整合版
String
signature
=
PayKit
.
createSign
(
ArrayList
<
String
>
signMessage
,
String
keyPath
)
```
## 构建 Authorization
```
java
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录