Use of undefined constant CURLOPT_SSL_VERIFYPEER - assumed 'CURLOPT_SSL_VERIFYPEER'
austinlv opened this issue · comments
austinlv commented
你好,按照README.md中描述配置和使用过程中,使用微信扫码功能时报错,请帮忙看下什么问题。
in Scan.php line 25
--
at HandleExceptions->handleError(8, 'Use of undefined constant CURLOPT_SSL_VERIFYPEER - assumed \'CURLOPT_SSL_VERIFYPEER\'', 'D:\\ws-php\\iyaya-payment\\vendor\\laeo\\paysoul\\src\\Providers\\Wxpay\\Channels\\Scan.php', 25, array('config' => object(SensitiveArray)))in Scan.php line 25
at Scan->__construct(object(SensitiveArray))in WxpayProvider.php line 54
at WxpayProvider->__call('deal', array('123413412341234', 'subject', 800))in PayController.php line 56
at PayController->qr()in ControllerDispatcher.php line 47
at ControllerDispatcher->dispatch(object(Route), object(PayController), 'qr')in Route.php line 203
代码如下
$config 正常配置,未配置ssl_cert_path和ssl_key_path。
$paysoul = new Paysoul($config);
$qrcode = $paysoul->channel('wxpay.scan')->deal("123413412341234","subject",800);
谢谢!
laeo commented
需要CURL扩展支持,你这是没有安装CURL,所以才会报常量未定义。另外,这个仓库年久失修,开发的时候并没有对微信支付做测试,不建议使用于生产环境。