Socket
Book a DemoInstallSign in
Socket

qq-mini-pay

Package Overview
Dependencies
Maintainers
6
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qq-mini-pay

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

latest
Source
npmnpm
Version
1.0.9
Version published
Maintainers
6
Created
Source

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: '',
})

FAQs

Package last updated on 29 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts