Naphthalene Possum Management

    qq-mini-pay
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.9 • Public • Published

    QQ MiniPay Node.js SDK

    QQ 小程序虚拟支付(米大师)

    npm version CircleCI

    Install

    yarn add qq-mini-pay

    Usage

    import { MiniPay } from 'qq-mini-pay'
    
    const miniPay = new MiniPay({
      appId: '',
      appKey: '',
      offerId: '',
      async getAccessToken() {
        return ''
      },
      sandbox: false,
      retryLimit: 3,
      http2: true,
    })
    
    const user = {
      openId: '',
      sessionKey: '',
      zoneId: '',
    }
    
    miniPay.pay(user, {
      amt: 1,
      userIp: '',
      payItem: '',
      appRemark: '',
    })
    
    miniPay.getBalance(user)
    
    miniPay.present(user, {
      presentCounts: 1,
      userIp: '',
    })

    Keywords

    none

    Install

    npm i qq-mini-pay

    DownloadsWeekly Downloads

    70

    Version

    1.0.9

    License

    ISC

    Unpacked Size

    16.4 kB

    Total Files

    6

    Last publish

    Collaborators

    • renzholy
    • themez
    • tiant167
    • sunskyxh
    • sorcererxw
    • joway