npm package: @iot9x.com/nestjs-wechat-pay-provider
Description: NestJS 微信支付插件——服务商版本
Author: Iric
Latest version: 0.0.6

# NestJS 微信支付插件——服务商版本

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

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

## 使用说明

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

### 支持环境

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

### 安装

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

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

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

### 使用

详见文档：[NestJS 8.x 系列——微信支付服务商版本](https://docs.iot9x.com/nestjs/8/%E5%BE%AE%E4%BF%A1%E6%9C%8D%E5%8A%A1%E5%95%86%E6%94%AF%E4%BB%98/)

## RoadMap

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