Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
npm install yu-wxapi
const wx = require('yu-wxapi')
//wx.init()需在首次调用数据库操作之前调用一次即可
//随后跨模块操作数据库可不再调用本方法
//建议在程序入口模块优先调用一次
wx.init(appid, secret, mchid, privateKeyPath, serial_no, apiV3)
//注意下列方法均可能抛出错误
//建议使用try catch包裹
await wx.loginForApplet(code) //小程序登录
await wx.getUserPhoneNumber(code) //获取用户手机号
await wx.orderPayByJSAPI(description, amountTotal, openid, notify_url = '', support_fapiao = false) //微信JSAPI下单(小程序或微信内置浏览器)
await wx.orderPayByH5(description, amountTotal, payer_client_ip, notify_url = '', support_fapiao = false) //微信H5下单(微信之外浏览器)
await wx.orderPayByNative(description, amountTotal, notify_url = '', support_fapiao = false) //微信Native下单(APP)
await wx.orderQuery(out_trade_no) //查询订单支付结果
await wx.refund(out_trade_no, reason, refund, total, notify_url = null) //微信退款申请
await wx.refundQuery(out_trade_no) //退款信息查询
wx.refundNotify(refundData) //退款通知解密
wx.payNotify(payData) //支付通知解密
FAQs
对微信支付及小程序相关后端API的封装
We found that yu-wxapi demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.