authorize.net cim 清空响应数组使用 php sdk 没有错误
authorize.net cim empty response array using php sdk without errors
我从 authorize.net 收到一个空数组响应,没有任何错误。
AuthorizeNetCIM_Response 对象 ( [xml] => [响应] => )
我正在使用新的 php SDK。这是我的代码
//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 等
Authorize.net 正在对他们的系统进行一些升级。您需要在 github here 上访问 authorize.net 的最新 SDK 并下载它。在 lib/ssl 文件夹中,复制 cert.pem 文件,并将其粘贴到同一文件夹 lib/ssl 内的 sdk 中。覆盖现有的证书文件。而已。它应该开始工作了:)
我认为,您没有正确连接到 authorize.net。请更新 authorize.net sdk .
我从 authorize.net 收到一个空数组响应,没有任何错误。
AuthorizeNetCIM_Response 对象 ( [xml] => [响应] => )
我正在使用新的 php SDK。这是我的代码
//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 等
Authorize.net 正在对他们的系统进行一些升级。您需要在 github here 上访问 authorize.net 的最新 SDK 并下载它。在 lib/ssl 文件夹中,复制 cert.pem 文件,并将其粘贴到同一文件夹 lib/ssl 内的 sdk 中。覆盖现有的证书文件。而已。它应该开始工作了:)
我认为,您没有正确连接到 authorize.net。请更新 authorize.net sdk .