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

cordova-plugin-dpwechat

v2.0.4

Published

A cordova plugin, a JS version of Wechat SDK

Readme

cordova-plugin-dpwechat

A cordova plugin, a JS version of Wechat SDK

Feature

 智付微信支付插件,通过此插件调用微信支付

Example

See https://github.com/scottma0211/dinpayTrip.git

Install

  1. cordova plugin add cordova-plugin-dpwechat --variable wechatappid=YOUR_WECHAT_APPID,

  2. (iOS only) if your cordova version <5.1.1,check the URL Type using XCode

Usage

Check if wechat is installed

Wechat.isInstalled(function (installed) {
    alert("Wechat installed: " + (installed ? "Yes" : "No"));
}, function (reason) {
    alert("Failed: " + reason);
});
## 注意事项
```Javascript 
   IOS 使用Cordova微信支付插件iOS版注意事项:
     1.该插件依赖第三方库文件DPWXPayPlugin.framwork,该文件可在智付官网技术支持下载;
     2.该插件依赖微信官方的一些系统库文件,并需引用OpenSDK1.8.0文件夹内所有文件
```Javascript 
   android 导入有智付支付提供的辅助ZFWCPay.jar包放置项目libs中,在build.gradle 进行添加引用
           dependencies {
            compile files('libs/ZFWCPay.jar')
               }

## Send payment request
```Javascript
// Android
var params = {
    token: '', // 请求智付支付服务端生成
    app_id: '' // 微信应用APPID
};
Wechat.sendPaymentRequest(params, function () {
    alert("Success");
}, function (reason) {
    alert("Failed: " + reason);
});
// IOS
 Cordova.exec(successFunction, failFunction,"Wechat", "sendPaymentRequest", [data.token]);
      function successFunction(){
        alert("successFunction");
          }
      function failFunction(){
          alert("failFunction");
        }

FAQ

See [FAQ]https://github.com/scottma0211/dinpayTrip.git

LICENSE

MIT LICENSE