如何删除 authorize.net 发送 xml 请求中的账单信息?
how to remove billing information in authorize.net sending xml request?
如何在向 authorize.net cim api 发送请求时删除账单或送货信息。我试过这样但没有得到任何回应
下面是 xml 格式
$input_xml = '<?xml version="1.0" encoding="utf-8" ?>
<getHostedProfilePageRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>xxxxxxx</name>
<transactionKey>xxxxxxxxx</transactionKey>
</merchantAuthentication>
<hostedProfileSettings>
<setting>
<settingName>hostedProfileReturnUrl</settingName>
<settingValue>https://www.google.co.in/</settingValue>
</setting>
<setting>
<settingName>hostedProfileReturnUrlText</settingName>
<settingValue>Continue to xtg.</settingValue>
</setting>
<setting>
<settingName>hostedProfilePageBorderVisible</settingName>
<settingValue>true</settingValue>
</setting>
</hostedProfileSettings>
</getHostedProfilePageRequest>';
//setting the curl parameters.
$url = "https://test.authorize.net/profile/addPayment";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POSTFIELDS,
"xmlRequest=" . $input_xml);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 300);
$data = curl_exec($ch);
curl_close($ch);
//convert the XML result into array
$array_data = json_decode(json_encode(simplexml_load_string($data)), true);
print_r('<pre>');
print_r($array_data);
print_r('</pre>');
是的,现在它正在运行。我给了正确的 api 登录 ID
如何在向 authorize.net cim api 发送请求时删除账单或送货信息。我试过这样但没有得到任何回应 下面是 xml 格式
$input_xml = '<?xml version="1.0" encoding="utf-8" ?>
<getHostedProfilePageRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>xxxxxxx</name>
<transactionKey>xxxxxxxxx</transactionKey>
</merchantAuthentication>
<hostedProfileSettings>
<setting>
<settingName>hostedProfileReturnUrl</settingName>
<settingValue>https://www.google.co.in/</settingValue>
</setting>
<setting>
<settingName>hostedProfileReturnUrlText</settingName>
<settingValue>Continue to xtg.</settingValue>
</setting>
<setting>
<settingName>hostedProfilePageBorderVisible</settingName>
<settingValue>true</settingValue>
</setting>
</hostedProfileSettings>
</getHostedProfilePageRequest>';
//setting the curl parameters.
$url = "https://test.authorize.net/profile/addPayment";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POSTFIELDS,
"xmlRequest=" . $input_xml);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 300);
$data = curl_exec($ch);
curl_close($ch);
//convert the XML result into array
$array_data = json_decode(json_encode(simplexml_load_string($data)), true);
print_r('<pre>');
print_r($array_data);
print_r('</pre>');
是的,现在它正在运行。我给了正确的 api 登录 ID