PHP Comtrust SOAP api响应代码5000
我正在使用Comtrust支付api并开发一个SOAP包装器来调用Comtrust函数。目前正在使用Comtrust的演示帐户,方法是遵循其文档并获得以下响应:PHP Comtrust SOAP api响应代码5000,php,soap,payment-gateway,soap-client,Php,Soap,Payment Gateway,Soap Client,我正在使用Comtrust支付api并开发一个SOAP包装器来调用Comtrust函数。目前正在使用Comtrust的演示帐户,方法是遵循其文档并获得以下响应: stdClass Object ( [RegisterResult] => stdClass Object ( [ResponseCode] => 5000 [ResponseDescription] => Request is not permitted or not authenticated properly [
stdClass Object ( [RegisterResult] => stdClass Object ( [ResponseCode] => 5000 [ResponseDescription] => Request is not permitted or not authenticated properly [UniqueID] => 1942d0d0-37f5-4504-951e-3343f9b86ea7 [version] => 2.0 [PaymentPortal] => [TransactionID] => ) )
我正在使用以下代码:
$client = new SoapClient("https://demo-ipg.comtrust.ae:2443/MerchantAPI.svc?singleWsdl");
try {
$result = $client->Register(array("request" => array(
'Customer' => 'Demo Merchant',
'Channel' => 'Web',
'Address' => 'demo-ipg.comtrust.ae',
'Language' => 'en',
'Password' => 'Comtrust',
'version' => '2.0',
'Amount' => '99.98',
'Currency' => 'AED',
'OrderID' => '123',
'OrderInfo' => 'Test Info',
'OrderName' => 'Test Name',
'ReturnPath' => 'http://127.0.0.1/jd_ecommerce/',
'TransactionHint' => 'CPT:Y'
)));
print_r($result);
}catch (Exception $e)
{
echo 'Caught exception: ', $e->getMessage(), "\n";
}
我有.pfx格式的证书文件和密码。我的问题是如何使用SOAP信封传递.pfx文件。有人面临类似的问题吗
请帮忙
提前感谢在PHP中,您需要使用.pem格式的证书。请将其与密码“Comtrust”一起使用以访问临时服务器