在使用 Yansongda\Pay 进行微信支付开发时,遇到错误:Get Wechat Public Cert Error,产生这个错误的原因是商户秘钥配置的不正确,请检查商户秘钥。
我用的微信支付 APIv3,这个版本是有单独的秘钥的,但是我最初配置的是 APIv2 版本的秘钥,申请新的 APIv3 秘钥并配置之后,错误解决。
APIv3 秘钥的详细说明参见官方文档:https://kf.qq.com/faq/180830E36vyQ180830AZFZvu.html
(adsbygoogle = window.adsbygoogle || []).push({});
来源:https://www.02405.com/archives/6676
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_7415.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57