Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

header to long #38

Open
liuhuapiaoyuan opened this issue Sep 7, 2016 · 1 comment
Open

header to long #38

liuhuapiaoyuan opened this issue Sep 7, 2016 · 1 comment

Comments

@liuhuapiaoyuan
Copy link

var Payment = function (config) {
  this.appId = config.appId;
  this.partnerKey = config.partnerKey;
  this.mchId = config.mchId;
  this.subMchId = config.subMchId;
  this.notifyUrl = config.notifyUrl;
  this.passphrase = config.passphrase || config.mchId;
  this.pfx = config.pfx;
  this.key = config.key;
  this.cert = config.cert;
  //打开日志
  this.logger = config.logger || false
  return this;
};

Payment.prototype._httpsRequest = function(url, data, callback){

  var parsed_url = url_mod.parse(url);
  var logger = this.logger;
  option = {
      host: parsed_url.host,
      path: parsed_url.path,
      body:'xml',
      method: 'POST',
    key: this.key, 
    cert: this.cert 
  }

这段代码好像得改成这样才行,用p12证书会出现 header to long

@bigdoods
Copy link

Hi. Where can I find Sub_MchId in weChat vendor platform?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants