node-wxpay icon indicating copy to clipboard operation
node-wxpay copied to clipboard

微信支付APIv3 for nodejs

Results 11 node-wxpay issues
Sort by recently updated
recently updated
newest added

请问支持小程序的支付方式吗? JSAPI支付发起的时候 商户订单号 | out_trade_no 这个参数 不需要传吗?

对index.js pullrequest 中ovsersea 参数进行说明,注释;

考虑微信支付v3接口支持海外版 微信支付v3 接口 应该支持海外版,需添加海外版接口url 微信支付v3海外版接口官方地址:https://pay.weixin.qq.com/wiki/doc/api/wxpay/ch/pages/In-AppPay_fw.shtml

微信支付接口 v3 还有海外版,url需要适配下,或者让用户传对应接口的url 海外版微信支付v3接口 https://api.mch.weixin.qq.com/hk/v3/transactions/app 境内大陆微信支付接口 https://api.mch.weixin.qq.com/v3/pay/transactions/app 或者在payment构造函数定义一个变量 oversea 布尔值变量,在构造函数中替换url;

decodeCertificates 是异步函数 constructor({appid, mchid, private_key, serial_no,apiv3_private_key,notify_url} = {}) { .... this.decodeCertificates(); // pending , 无法加载 certificates }

const Payment = require("wxpay-v3"); const payment = new Payment({ appid: "xxxx", mchid: "xxx", private_key: require("fs") .readFileSync("./cert/apiclient_key.pem") .toString(), //或者直接复制证书文件内容 serial_no: "3xxxxxxxC0DFDB7CF67B901A5A5746A", apiv3_private_key: "xxxxxx", notify_url: "https://f.tuoyal.com/beta-api/version", }); // const config = {...

jsapi支付只返回 prepay_id

![图片](https://user-images.githubusercontent.com/9604828/224642991-d5ac1eae-bbca-41f9-bbc4-9c9dd1b0c6f9.png)

[新申请的微信支付商户号需要使用公私钥模式进行接口验签](https://developers.weixin.qq.com/community/pay/doc/0002c6a7cf438818df52145b863c01) 新申请的微信支付接口验签直接挂,怎么办 { status: 404, data: '{"code":"RESOURCE_NOT_EXISTS","message":"无可用的平台证书,请在商户平台-API安全申请使用微信支付公钥。可查看指引https://pay.weixin.qq.com/docs/merchant/products/platform-certificate/wxp-pub-key-guide.html"}' }