简体   繁体   English

eWAY支付网关集成

[英]eWAY payment gateway integration

I been searching this error and i have no luck on finding a solution.我一直在搜索此错误,但找不到解决方案。 I am new in this eway payment gateway.我是这个 eway 支付网关的新手。 I am just trying to understand the process of how to integrate eway payment into php.我只是想了解如何将eway支付集成到php中的过程。

i started to follow the sample code given by eway SDK but when i test it我开始遵循eway SDK给出的示例代码,但是当我测试它时

Error: eWAY library has encountered a problem connecting to Rapid.错误:eWAY 库在连接到 Rapid 时遇到问题。

Maybe i just got confused that hindered me to find the correct solution.也许我只是感到困惑,阻碍了我找到正确的解决方案。

Can anyone point me to the right direction to solve this problem?谁能指出我解决这个问题的正确方向?

Many thanks,非常感谢,

What you need to do is update your certificate.您需要做的是更新您的证书。

On your server upload this file - https://curl.haxx.se/ca/cacert.pem在您的服务器上上传此文件 - https://curl.haxx.se/ca/cacert.pem

Make sure its not in your www folder, somewhere only apache can access.确保它不在您的 www 文件夹中,只有 apache 可以访问。

Then in your php.ini file add this line to the bottom:然后在您的 php.ini 文件中将此行添加到底部:

curl.cainfo=C:\\wamp\\certificates\\cacert-2016-11-02.pem curl.cainfo=C:\\wamp\\certificates\\cacert-2016-11-02.pem

Replace C:\\wamp\\certificates\\cacert-2016-11-02.pem with the path of the certificate you just uploaded.将 C:\\wamp\\certificates\\cacert-2016-11-02.pem 替换为您刚刚上传的证书的路径。 Restart your server.重新启动您的服务器。 It should now start working.它现在应该开始工作。

Here is some more information:以下是更多信息:

Update WAMP/Apache to use new cacert.pem 更新 WAMP/Apache 以使用新的 cacert.pem

https://curl.haxx.se/docs/caextract.html https://curl.haxx.se/docs/caextract.html

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

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