3

我正在尝试在我的站点配置文件中为 FirstData Payment Gateway 整合 First data Payment Getway

define("FDAPI_URL","https://ws.merchanttest.firstdataglobalgateway.com/fdggwsapi/services/order.wsdl");
define("FD_USERPWD","WSXXXXXXXX._.1:XXXXXXXX");
define("FD_SSLCERT", "/home/flagcases/domains/usaflagcases.com/public_html/certificate/WSXXXXXXXX._.1.pem"); 
define("FD_SSLKEY","/home/flagcases/domains/usaflagcases.com/public_html/certificate/WSXXXXXXXX._.1.key"); 
define("FD_SSLKEYPASSWD", "ckp_XXXXXXXX"); 
$ch = curl_init(FDAPI_URL);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: text/xml"));
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_USERPWD, FD_USERPWD);
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSLCERT, FD_SSLCERT);
curl_setopt($ch, CURLOPT_SSLKEY, FD_SSLKEY);
curl_setopt($ch, CURLOPT_SSLKEYPASSWD, FD_SSLKEYPASSWD);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch); 
if ($result === false)
{
    echo curl_error($ch);
}

总是出现 无法使用客户端证书的卷曲错误(找不到密钥或密码错误?)卷曲错误

4

1 回答 1

1

请尝试添加 WSXXXXXXXX。.1.p12 可能会对您有所帮助...您在哪里添加了 WSXXXXXXXXX。.1.pem 和 WSXXXXXXXXX._.1.key

于 2012-11-26T14:51:58.697 回答