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

Builder::factory 参数和支付类型问题 #15

Closed
MichonneHsu opened this issue Jul 16, 2021 · 1 comment
Closed

Builder::factory 参数和支付类型问题 #15

MichonneHsu opened this issue Jul 16, 2021 · 1 comment

Comments

@MichonneHsu
Copy link

'certs' => [ // 可由内置的平台证书下载器 ./bin/CertificateDownloader.php 生成 'YYYYYYYYYY' => PemUtil::loadCertificate('/path/to/wechatpay/cert.pem') ],

这里的Y是个什么?我填入序列号报错,不填没错。
还有个问题
支付只有native类型?

@TheNorthMemory
Copy link
Collaborator

初始化字典说明如下:

  • mchid 为你的商户号,一般是10字节纯数字
  • serial 为你的商户证书序列号,一般是40字节字符串
  • privateKey 为你的商户API私钥,一般是通过官方证书生成工具生成的文件名是apiclient_key.pem文件,支持纯字符串或者文件resource格式
  • certs[$serial_number => #resource] 为通过下载工具下载的平台证书key/value键值对,键为平台证书序列号,值为平台证书pem格式的纯字符串或者文件resource格式

@xy-peng xy-peng closed this as completed Jul 18, 2021
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

3 participants