npm package: @iot9x.com/nestjs-wechat-pay
Description: NestJS 微信支付插件
Author: Iric
Latest version: 0.0.1

# NestJS 微信支付插件

注意：<font color="#dd0000">仍在开发中，目前仅在内部使用</font><br />

[文档地址](https://docs.iot9x.com/nestjs/8/%E5%BE%AE%E4%BF%A1%E6%94%AF%E4%BB%98/)

## 使用说明

外部人员仅供参考，请不要用于生产环境，因此导致的事故后果请自行承担。

### 支持环境

- node >=`16.x`
- nest >=`8.x`

### 安装

```shell
$ npm i @iot9x.com/nestjs-wechat-pay

or
$ yarn add @iot9x.com/nestjs-wechat-pay

or
$ pnpm add @iot9x.com/nestjs-wechat-pay  # 推荐使用pnpm
```

### 使用

详见文档：[NestJS 8.x 系列——微信支付](https://docs.iot9x.com/nestjs/8/%E5%BE%AE%E4%BF%A1%E6%94%AF%E4%BB%98/)

## RoadMap

- 小程序支付
  - [x] [JSAPI 下单](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_1.shtml)
  - [ ] [查询订单 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_2.shtml)
  - [ ] [关闭订单 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_3.shtml)
  - [ ] [支付通知 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_5.shtml)
  - [ ] [申请退款 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_9.shtml)
  - [ ] [查询单笔退款 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_10.shtml)
  - [ ] [退款结果通知 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_11.shtml)
  - [ ] [申请交易账单 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_6.shtml)
  - [ ] [申请资金账单 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_7.shtml)
  - [ ] [下载账单 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_8.shtml)
- JSAPI 支付
  - [x] [JSAPI 下单](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_1.shtml)
  - [ ] [查询订单 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_2.shtml)
  - [ ] [关闭订单 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_3.shtml)
  - [ ] [支付通知 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_5.shtml)
  - [ ] [申请退款 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_9.shtml)
  - [ ] [查询单笔退款 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_10.shtml)
  - [ ] [退款结果通知 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_11.shtml)
  - [ ] [申请交易账单 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_6.shtml)
  - [ ] [申请资金账单 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_7.shtml)
  - [ ] [下载账单 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_8.shtml)
- APP 支付
  - [ ] [APP 下单](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_1.shtml)
  - [ ] [查询订单 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_2.shtml)
  - [ ] [关闭订单 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_3.shtml)
  - [ ] [支付通知 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_5.shtml)
  - [ ] [申请退款 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_9.shtml)
  - [ ] [查询单笔退款 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_10.shtml)
  - [ ] [退款结果通知 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_11.shtml)
  - [ ] [申请交易账单 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_6.shtml)
  - [ ] [申请资金账单 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_7.shtml)
  - [ ] [下载账单 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_8.shtml)
- H5 支付
  - [ ] [H5 下单](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_1.shtml)
  - [ ] [查询订单 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_2.shtml)
  - [ ] [关闭订单 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_3.shtml)
  - [ ] [支付通知 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_5.shtml)
  - [ ] [申请退款 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_9.shtml)
  - [ ] [查询单笔退款 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_10.shtml)
  - [ ] [退款结果通知 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_11.shtml)
  - [ ] [申请交易账单 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_6.shtml)
  - [ ] [申请资金账单 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_7.shtml)
  - [ ] [下载账单 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_8.shtml)
- Native 支付
  - [ ] [Native 下单](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_1.shtml)
  - [ ] [查询订单 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_2.shtml)
  - [ ] [关闭订单 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_3.shtml)
  - [ ] [支付通知 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_5.shtml)
  - [ ] [申请退款 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_9.shtml)
  - [ ] [查询单笔退款 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_10.shtml)
  - [ ] [退款结果通知 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_11.shtml)
  - [ ] [申请交易账单 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_6.shtml)
  - [ ] [申请资金账单 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_7.shtml)
  - [ ] [下载账单 API](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_8.shtml)