【发布时间】:2012-07-20 03:15:55
【问题描述】:
我已经制定了从 CIM 获取信息的脚本:
$content =
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" .
"<getCustomerProfileRequest xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\">" .
merchantAuthenticationBlock().
"<customerProfileId>$cid</customerProfileId>" .
"</getCustomerProfileRequest>";
$response = send_xml_request($content);
$parsedresponse = parse_api_response($response);
那么,现在如何将返回值写入变量?
我试过了:
$customerPaymentProfileId = $parsedresponse->customerPaymentProfileId;
$customerShippingAddressId = $parsedresponse->customerShippingAddressId;
但这会将变量返回为空。我觉得我错过了一些简单的东西。
【问题讨论】:
标签: php xml authorize.net authorize.net-cim