支付宝沙箱配置完成后报Missing Alipay Config -- [app_public_cert_path]
按照文档配置沙箱环境之后访问临时路由报如下错误,文章内没有app_public_cert_path
相关参数
根据本教程github中composer配置文件显示,扩展包为2.10.2,但现在实际安装的都是3.0,扩展包的配置参数都不一样了肯定不行,根据以下命令卸载扩展包再安装指定版本的就行了
composer remove yansongda/pay
composer require yansongda/pay 2.10.2
Problem 1 - Root composer.json requires yansongda/pay 2.10.2 -> satisfiable by yansongda/pay[v2.10.2]. - yansongda/pay v2.10.2 requires symfony/http-foundation ^4.0 || ^5.0.7 -> found symfony/http-foundation[v4.0.0, ..., v4.4.30, v5.0.7, ..., v5.3.7] but the package is fixed to v3.4.47 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command
解决方法 composer require symfony/event-dispatcher 5.4.x-dev
composer require yansongda/pay=2.10.2