Installations
npm install weixin-pay-node-sdk
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
12.13.0
NPM Version
6.12.0
Score
69.5
Supply Chain
81.4
Quality
72.6
Maintenance
50
Vulnerability
98.9
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
joneqian
Download Statistics
Total Downloads
565
Last Day
1
Last Week
1
Last Month
4
Last Year
62
GitHub Statistics
1 Stars
3 Commits
2 Watching
1 Branches
1 Contributors
Package Meta Information
Latest Version
1.0.1
Package Id
weixin-pay-node-sdk@1.0.1
Unpacked Size
20.19 kB
Size
5.26 kB
File Count
4
NPM Version
6.12.0
Node Version
12.13.0
Total Downloads
Cumulative downloads
Total Downloads
565
Last day
0%
1
Compared to previous day
Last week
-50%
1
Compared to previous week
Last month
100%
4
Compared to previous month
Last year
-54.1%
62
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
weixin-pay-node-sdk
一、概述
weixin-pay-node-sdk 是微信支付 sdk。
二、使用方法
安装
1npm install weixin-pay-node-sdk --save
引用依赖库
1const wxpay = require('weixin-pay-node-sdk');
初始化
1const config = { 2 appid: '公众号APPID', 3 mchid: '商户号ID', 4 partnerKey: '商户号API密钥', 5 pfx: fs.readFileSync('证书文件'), 6 notify_url: '支付回调网址', 7 spbill_create_ip: '服务器IP', 8}; 9const wxpay = new WXPay(config);
调用
1let res_pay = await wxpay.transfers({ 2 partner_trade_no: '', 3 openid: '', 4 re_user_name: '', 5 amount: 100, 6 desc: '', 7});
微信支付 API 文档
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/3 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
2.6
/10
Last Scanned on 2025-01-06
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More