wechat-box
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Wechat Box

Build Status codecov GitHub GitHub package.json version David

wechat box,中文名:“微信盒子”,封装微信公众平台、微信开放平台等相关接口。提供开箱即用的微信应用开发体验。

使用

npm install wechat-box
const WecahtBox = require('wechat-box')
 
const wechat = new WechatBox({
  appid: '',
  appsecret: '',
  merchantId: '',
  paymentKey: '',
  paymentCertificatePfx: '',
  paymentNotifyUrl: ''
})
 
wechat.payment.unifiedOrder({...}).then(result => {
  console.log(result)
})

API

unifiedOrder

统一下单

closeOrder

关闭订单

Package Sidebar

Install

npm i wechat-box

Weekly Downloads

2

Version

0.0.3

License

MIT

Unpacked Size

55.3 kB

Total Files

28

Last publish

Collaborators

  • joenlee