- 一路折腾我把支付 jsapi v3 调通了,但是回调出了问题,尴尬的一劈?
这个v3 的支付跟以往的那些支付难度大多了,回调通知的信息 竟然需要解密才能获得 啊, 太痛苦了, $certInstance = PemUtil::loadCertificate('/path/to/wechatpay/inWechatpaySerial.pem'); public static function loadCertificate(string $filepath) { $content = file_get_contents($filepath); if (false === $content) { throw new UnexpectedValueException("Loading the certificate failed, please checking your {$filepath} input."); } return openssl_x509_read($content); } 我的证书序列号就是一串字符串,于是我改了下代码,直接 openssl_x509_read("02964E11948B3F46CCB5BA02964E11948B3F46CCB5B") 竟然不可以,怎么将 证书的序列号生成 pem 文件呢?? 求助啊
2021-08-31 - 微信支付 v3 咋这么难呢,解决了一个问题,又是另一个问题?
v3 jsapi 二次签名的时候 报 "openssl_sign(): supplied key param cannot be coerced into a private key", 我的私钥 是平台的工具生成的,这个有啥问题么?
2021-08-30 - 微信支付 v3 jsapi 平台证书怎么都获取不了,报错 option not found k
php -f ./bin/CertificateDownloader.php -k xxxssssss -m 123456 -f /usr/local/wxpay/apiclient_key.pem -s xxxxxxxxxxxxxxxxxxxxxxxxx -o /usr/local/wxpay/cert.pem Error in argument 3, char 2: option not found k Usage: php [options] [-f] <file> [--] [args...] php [options] -r <code> [--] [args...] php [options] [-B <begin_code>] -R <code> [-E <end_code>] [--] [args...] php [options] [-B <begin_code>] -F <file> [-E <end_code>] [--] [args...] php [options] -S <addr>:<port> [-t docroot] [router] php [options] -- [args...] php [options] -a -a Run interactively -c <path>|<file> Look for php.ini file in this directory -n No configuration (ini) files will be used -d foo[=bar] Define INI entry foo with value 'bar' -e Generate extended information for debugger/profiler -f <file> Parse and execute <file>. -h This help -i PHP information -l Syntax check only (lint) -m Show compiled in modules -r <code> Run PHP <code> without using script tags <?..?> -B <begin_code> Run PHP <begin_code> before processing input lines -R <code> Run PHP <code> for every input line -F <file> Parse and execute <file> for every input line -E <end_code> Run PHP <end_code> after processing all input lines -H Hide any passed arguments from external tools. -S <addr>:<port> Run with built-in web server. -t <docroot> Specify document root <docroot> for built-in web server. -s Output HTML syntax highlighted source. -v Version number -w Output source with stripped comments and whitespace. -z <file> Load Zend extension <file>. args... Arguments passed to script. Use -- args when first argument starts with - or script is read from stdin --ini Show configuration file names --rf <name> Show information about function <name>. --rc <name> Show information about class <name>. --re <name> Show information about extension <name>. --rz <name> Show information about Zend extension <name>. --ri <name> Show configuration for extension <name>、 b b并没有 -k 这个属性啊,这个平台证书要真么获取,有没有跟我一样遇到的情况?整了一天了都没有搞好,请大神给与指点下
2021-08-29