1

我在我的opencart中使用instamojo作为支付网关。

Opencart 版本为:2.0.3.1

我从https://github.com/Instamojo/Instamojo-OpenCart-2.0下载instamojo并按照此处所述的说明进行操作。

成功完全实施后,我使用instamojo 付款。但是付款后我重定向到购物车页面而不是成功页面。管理面板中没有订单,也没有收到电子邮件。

我检查位于 system/logs/imojo.log

表明:

2016-04-04 14:35:13 - Curl error no: 60 || Curl error message: SSL certificate problem: self signed certificate in certificate chain
2016-04-04 14:35:13 - Payment for this ID(xxxxxxx) was not successful: null
2016-04-04 14:35:13 - Response from server is null.
2016-04-04 14:35:13 - Payment for xxxxxxx was not credited.

我按照链接 http://unitstep.net/blog/2009/05/05/using-curl-in-php-to-access-https-ssltls-protected-sites/ 创建 CA 证书并将文件放入C:/wamp/www/MyCACertificate.crt

并添加

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_CAINFO, getcwd() . "/MyCACertificate.crt");

_getcurlInfo功能中 catalog/controller/payment/instamojo.php

并将php.ini文件更改为curl.cainfo = "c:/wamp/www/MyCACertificate.crt"

但在日志中显示相同的错误Curl 错误消息:SSL 证书问题:证书链中的自签名证书

我如何解决这个问题?请帮我..

4

0 回答 0