Skip to content

Commit

Permalink
fix: 修复商户订单查询和微信支付订单查询两个接口注释写反问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jay committed Jul 26, 2023
1 parent 1e817e6 commit c36563c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/wepay.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,13 @@ export class WePayService {
}

/**
* 商户订单号查询订单
* 微信支付订单号查询订单
* @param id
* @param mchId
* @param serialNo
* @param privateKey
* @returns
* @link https://pay.weixin.qq.com/docs/merchant/apis/jsapi-payment/query-by-wx-trade-no.html
*/
async getTransactionById (id: string, mchId: string, serialNo: string, privateKey: Buffer | string) {
const nonceStr = createNonceStr();
Expand All @@ -110,12 +111,13 @@ export class WePayService {
}

/**
* 微信支付订单号查询订单
* 商户订单号查询订单
* @param outTradeNo
* @param mchId
* @param serialNo
* @param privateKey
* @returns
* @link https://pay.weixin.qq.com/docs/merchant/apis/jsapi-payment/query-by-out-trade-no.html
*/
async getTransactionByOutTradeNo (outTradeNo: string, mchId: string, serialNo: string, privateKey: Buffer | string) {
const nonceStr = createNonceStr();
Expand Down

0 comments on commit c36563c

Please sign in to comment.