简体   繁体   English

Magento中的ICICI付款网关集成

[英]ICICI Payment Gateway Integration in Magento

I get the Error: 我得到错误:

Error Occured.
Error Code:2
Error Message: No response From Payment Gateway or URL not Found

during testing ICICI Payment Gateway in Magento in testssl. 在testsl中的Magento中测试ICICI支付网关时。 Properties file contain the following line. 属性文件包含以下行。 Is it right or not ? 对不对?

Key.Directory=/home/..../public_html/mg1/sbi/

Please Open Postlib.php , go line no 716 . 请打开Postlib.php,转到第716行。

Kindly change the slash on this line :- curl_setopt($ch, CURLOPT_CAINFO, getcwd() . "\\Sfa\\cacert.pem"); 请在此行上更改斜杠:-curl_setopt($ ch,CURLOPT_CAINFO,getcwd()。“ \\ Sfa \\ cacert.pem”);

For Windows it should be Backward slash curl_setopt($ch, CURLOPT_CAINFO, getcwd() . "\\Sfa\\cacert.pem"); 对于Windows,应为反斜杠curl_setopt($ ch,CURLOPT_CAINFO,getcwd()。“ \\ Sfa \\ cacert.pem”);

For Linux it should be Forward slash curl_setopt($ch, CURLOPT_CAINFO, getcwd() . "/Sfa/cacert.pem"); 对于Linux,它应该是正斜杠curl_setopt($ ch,CURLOPT_CAINFO,getcwd()。“ /Sfa/cacert.pem”);

I got the problem if any body face this problem. 如果有人面对这个问题,我就会感到麻烦。 First if your OS is Linux then replace backslash with forward slash in PostLibPHP file and on line 27 in this file as $fp = fopen (realpath($_SERVER['DOCUMENT_ROOT'] . "/magento/app/design/frontend/default/default/template/testssl" ) ."//sfa.properties","r"); 首先,如果您的操作系统是Linux,则将PostLibPHP文件中反斜杠替换为正斜杠,并将该文件中第27行的$ fp = fopen(realpath($ _ SERVER ['DOCUMENT_ROOT']。“ / magento / app / design / frontend / default / default / template / testssl“)。” // sfa.properties“,” r“);

remove /magento or correct it so that given path point to correct testssp file path. 删除/ magento或对其进行更正,以使给定的路径指向正确的testssp文件路径。

Its most common issue with ICICI Gateway, you just need to keep in mind that you need to use Backward () For Windows and Forward slash (/) For Linux. 它是ICICI网关最常见的问题,您只需要记住, 对于Windows ,需要使用Backward(),对于Linux,则需要使用正斜杠 (/)。 rest will work well. 休息会很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM