Skip to content

Commit f9d27e6

Browse files
v0.4.0 changelog
1 parent dddb658 commit f9d27e6

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

README.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ wxpay.v2.mmpaymkttransfers.sendredpack.POST({
174174
.catch(({response: {status, statusText, data}}) => console.error(status, statusText, data))
175175
```
176176

177-
### 企业付款
177+
### 企业付款到零钱
178178

179179
```js
180180
wxpay.v2.mmpaymkttransfers.promotion.transfers({
@@ -193,6 +193,20 @@ wxpay.v2.mmpaymkttransfers.promotion.transfers({
193193
.catch(({response: {status, statusText, data}}) => console.error(status, statusText, data))
194194
```
195195

196+
## 企业付款到银行卡-获取RSA公钥
197+
198+
```js
199+
wxpay.v2.risk.getpublickey({
200+
mch_id: '1900000109',
201+
sign_type: 'MD5',
202+
nonce_str: Formatter.nonce(),
203+
}, {
204+
baseURL: 'https://fraud.mch.weixin.qq.com'
205+
})
206+
.then(res => console.info(res.data))
207+
.catch(({response: {status, statusText, data}}) => console.error(status, statusText, data))
208+
```
209+
196210
## APIv3
197211

198212
### Native下单API
@@ -495,7 +509,7 @@ Wechatpay.client.v2.defaults.transformResponse.unshift(data => (console.log(data
495509
496510
## 获取RSA公钥
497511
498-
非标准接口地址,这样支持调用
512+
非标准接口地址,也可以这样调用
499513
500514
```js
501515
Wechatpay.client.v2.post('https://fraud.mch.weixin.qq.com/risk/getpublickey', {
@@ -662,6 +676,9 @@ console.info(params)
662676
```js
663677
[Function (anonymous)] {
664678
v2: [Function: /v2] {
679+
risk: [Function: /v2/risk] {
680+
getpublickey: [Function: /v2/risk/getpublickey]
681+
},
665682
pay: [Function: /v2/pay] { micropay: [Function: /v2/pay/micropay] },
666683
secapi: [Function: /v2/secapi] {
667684
pay: [Function: /v2/secapi/pay] {
@@ -755,7 +772,8 @@ console.info(params)
755772
756773
- v0.4.0
757774
- 重构 `Wechatpay` 类,同时支持 APIv2&v3's 链式调用
758-
- 废弃 `withEntities` 方法,其在链式多次调用时,有可能达不到预期,详情见 #10
775+
- 改变 `Wechatpay.client` 返回值为`Wechatpay.client.v3``Wechatpay.client.v2``xmlBased` 接口客户端
776+
- 废弃 `withEntities` 方法,其在链式多次调用时,有可能达不到预期,详情见 #10,感谢 @ali-pay 报告此问题
759777
- README 文档中文化
760778
- 完善补缺 `tsd` 声明
761779

0 commit comments

Comments
 (0)