Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 576 Bytes

readme.md

File metadata and controls

31 lines (25 loc) · 576 Bytes

nest-wxpay

alt text

通过nestjs封装的微信支付模块,点击前往 查看文档

安装

npm i --save nest-wxpay
yarn add nest-wxpay

注册模块

import { Module } from '@nestjs/common'
import { WechatModule } from 'nest-wxpay'

@Module({
  imports: [
    WechatModule.register({
      appid: '公众号的appid',
      mchid: '微信支付商户号',
      serial_no: '商户证书序列号',
      privateKey: '商户私钥',
      apiv3Key: 'apiv3密钥'
    })
  ]
})
export class AppModule {}