Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/282.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用php sdk无错误地授权.net cim空响应数组_Php_Sdk_Authorize.net - Fatal编程技术网

使用php sdk无错误地授权.net cim空响应数组

使用php sdk无错误地授权.net cim空响应数组,php,sdk,authorize.net,Php,Sdk,Authorize.net,我从authorize.net获得一个空数组响应,没有任何错误 AuthorizeNetCIM_响应对象([xml]=>[Response]=>) 我正在使用新的PHPSDK。这是我的密码 //authorizenet configuration define("AUTHORIZENET_API_LOGIN_ID",''); define("AUTHORIZENET_TRANSACTION_KEY",''); define("AUTHORIZENET_SANDBOX",true)

我从authorize.net获得一个空数组响应,没有任何错误

AuthorizeNetCIM_响应对象([xml]=>[Response]=>)

我正在使用新的PHPSDK。这是我的密码

//authorizenet configuration        
define("AUTHORIZENET_API_LOGIN_ID",'');
define("AUTHORIZENET_TRANSACTION_KEY",'');
define("AUTHORIZENET_SANDBOX",true);

//Create new customer profile
$request                             = new AuthorizeNetCIM;
$customerProfile                     = new AuthorizeNetCustomer;
$customerProfile->description        = "Bar Express Customer";
$customerProfile->email              = "a97eehdhd@gmail.com";

$response =$request->createCustomerProfile($customerProfile); 

if ($response->isOk()) {
    $customerProfileId = $response->getCustomerProfileId();
}

echo print_r($response);

我认为您正在传递一些缺失的值来创建客户档案,如:


merchantCustomerId、refId等。

我认为您正在传递一些缺少的值来创建客户配置文件,如:


merchantCustomerId、refId等。

Authorize.net正在对其系统进行一些升级。您需要转到github上authorize.net的最新SDK并下载该SDK。在lib/ssl文件夹中,复制cert.pem文件,并将其粘贴到同一文件夹lib/ssl中的sdk中。覆盖现有的证书文件。就这样。它应该开始工作:)

Authorize.net正在对他们的系统进行一些升级。您需要转到github上authorize.net的最新SDK并下载该SDK。在lib/ssl文件夹中,复制cert.pem文件,并将其粘贴到同一文件夹lib/ssl中的sdk中。覆盖现有的证书文件。就这样。它应该开始工作:)

我想,您没有正确连接到authorize.net。请更新authorize.net sdk。

我认为您没有正确连接到authorize.net。请更新authorize.net sdk。

正确答案如上所示。我需要更新我的sdk。正确答案是上面的答案。我需要更新我的sdk。太棒了,它救了我一天:)太棒了,它救了我一天:)