Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Bank

企业付款

const pay = new Bank({
  appId: "wxb80e5bddb2d804f3",
  key: "6Q9VX4N3WTBM9G9XBL7H1L9PB9ANHLY7",
  mchId: "1434712502",
  pfx: fs.readFileSync(path.resolve(__dirname, "cert.p12"))
});
see

https://pay.weixin.qq.com/wiki/doc/api/tools/mch_pay.php?chapter=14_1

Hierarchy

Index

Constructors

constructor

Properties

appId

appId: string

公众账号ID

debug

debug: boolean = false

仿真模式开关

key

key: string

密钥

keyForDebug

keyForDebug: string

测试用验签密钥

mchId

mchId: string

商户号

pfx

pfx: Buffer

证书

Methods

Protected completeURL

  • completeURL(base: string): string

Protected createFetchOptions

  • createFetchOptions(url: string, usePfx?: boolean): Promise<FetchOptions>

Protected getKey

  • getKey(): string

getPublicKey

getTransferInfo

payBank

queryBank

setDebug

  • setDebug(useDebug: boolean): Promise<void>

transfers

verifySign

  • verifySign(data: object, signType?: SignType): boolean

Generated using TypeDoc