GithubHelp home page GithubHelp logo

Typescript支持 about node-tenpay HOT 9 CLOSED

befinal avatar befinal commented on May 30, 2024
Typescript支持

from node-tenpay.

Comments (9)

befinal avatar befinal commented on May 30, 2024

能否提交一个PR?

from node-tenpay.

wangshenzhen avatar wangshenzhen commented on May 30, 2024

这个退款通知和支付通知,有没有更详细的说明

from node-tenpay.

befinal avatar befinal commented on May 30, 2024

@wangshenzhen 需要如何详细的说明呢? 文档应该写的比较清楚了

from node-tenpay.

leosj avatar leosj commented on May 30, 2024

Error: wrong tag, POST https://api.mch.weixin.qq.com/mmpaymkttransfers/promotion/transfers -1 (connected: false, keepalive socket: false

from node-tenpay.

befinal avatar befinal commented on May 30, 2024

@leosj 检查双向证书是否正确, 企业付款需要证书

from node-tenpay.

leosj avatar leosj commented on May 30, 2024

证书不正确应该会报证书错误,但是这里说标签不对,有点搞不懂,求解

from node-tenpay.

befinal avatar befinal commented on May 30, 2024

这个错误应该就是reques产生的, 或者把你的代码发一下

from node-tenpay.

leosj avatar leosj commented on May 30, 2024

`
const config = {
appid: settings.appid,
mchid: settings.mchid,
partnerKey: settings.partnerKey,
pfx: fs.readFileSync(path.join(__dirname,'../../public' + settings.apiclient_cert)),
spbill_create_ip: ctx.request.ip !== '::1' ? ctx.request.ip : '127.0.0.1'
};
const out_trade_no = moment().format('YYYYMMDDHHmmssSSSSSSSSS') + '00' + Math.floor(Math.random()*(9999999-1000000+1)+1000000);

	const api = tenpay.init(config);
	let draw_result = await api.transfers({
		partner_trade_no: out_trade_no,
		openid: wxaaccount.openid,
		amount: money * 100,
		desc: '提现',
		check_name: 'NO_CHECK'
	});

`

from node-tenpay.

leosj avatar leosj commented on May 30, 2024

证书文件果然错了

from node-tenpay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.