npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

bt-common-pay-applets

v1.1.6

Published

微信小程序通用支付

Readme

项目名称

小程序通用支付方法

技术栈

小程序请求:wx.request
小程序支付:wx.requestPayment

author

likang

下载方法

step1: 
    检查npm源地址是否是公司库源地址,如果是,跳到step3,如果不是,跳到step2
    方法:npm get registry
step2:
    切换到公司源地址
    方法:npm config set registry http://repo.btpoc.com/repository/npm-public/
step3:
    安装
    npm install bt-common-pay-applets

使用方法

局部引入即可:import pay from 'bt-common-pay-applets'
pay(请求参数,请求头参数,支付成功回调,支付失败回调,支付结束回调,环境变量);

参数说明

pay(par, headers, successCb, failCb, completeCb, env)
请求参数par:
    appId:必传
    openId:必传
    orderNo:必传
    payOrderNo: 必传
    returnUrl: 回调地址,非必传
    sign:支付签名,必传

请求头参数headers:
    enterpriseId:企业id,必传
    brand:品牌id,必传
    accessToken:必传

successCb:支付成功回调,非必传
failCb:支付失败回调,非必传
completeCb:支付结束回调,非必传
env:环境变量,默认生产环境,非必传,可传值:dev,test,sit,pre