Skip to content

Commit

Permalink
typo outTradeNo.$out_trade_no$.close
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNorthMemory committed May 7, 2024
1 parent 50a43f2 commit 3d98866
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,11 @@ wxpay.v3.pay.transactions.id._transaction_id_ // _placeholder_ 语法糖会转

### 关闭订单
```js
wxpay.v3.pay.transactions.outTradeNo.$transaction_id$.close // $placeholder$ 语法糖会转换成 '{placeholder}' 格式
wxpay.v3.pay.transactions.outTradeNo.$out_trade_no$.close // $placeholder$ 语法糖会转换成 '{placeholder}' 格式
.post({
mchid: '1230000109'
}, {
transaction_id: '1217752501201407033233368018'
out_trade_no: 'P1217752501201407033233368018' //当商户订单号有大写字符时,只能这样参数化传递
})
.then(({status, statusText}) => console.info(status, statusText))
.catch(({response: {status, statusText, data}}) => console.error(status, statusText, data))
Expand Down

0 comments on commit 3d98866

Please sign in to comment.