1

在我的项目中,我正在 Authorize.net (CIM) 中为每个用户注册创建客户资料(不是付款资料),我已经成功实现了这一点。但我必须动态删除这些客户资料(不是付款资料),即当站点管理员从该项目中删除每个用户时,必须从 Authorize.net 商家帐户中删除客户资料。

请任何人帮助我!!!!

4

3 回答 3

2

根据Authorize.Net CIM XML 指南,使用第 57 页的 deleteCustomerProfileResponse API 调用:

此功能用于删除现有客户资料以及所有关联的客户付款资料和客户送货地址。

<?xml version="1.0" encoding="utf-8"?>
<deleteCustomerProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
  <merchantAuthentication>
    <name>YourUserLogin</name>
    <transactionKey>YourTranKey</transactionKey>
  </merchantAuthentication>
  <customerProfileId>10000</customerProfileId>
</deleteCustomerProfileRequest>
于 2011-02-18T05:50:04.377 回答
0

好吧,必须有一个函数可以删除客户资料 ID 但是如果要删除客户付款资料,请在 C# 中使用此方法

  public string DeleteCustPmtProfId(Int64 custProfID, Int64 custPmtProfID)
 {
  CustomerProfileWS.DeleteCustomerPaymentProfileResponseType response = SoapAPIUtilities.Service.DeleteCustomerPaymentProfile(SoapAPIUtilities.MerchantAuthentication, custProfID, custPmtProfID);
  for (int i = 0; i < response.messages.Length; i++)
     {
        lblStatus.Text = lblStatus.Text + "<br/>Message: " + response.messages[i].text + "<br/>Response Code: " + response.resultCode + "<br/>"; 
      }     

  }
于 2013-09-04T11:26:25.017 回答
0

删除客户资料也可以删除所有关联的付款资料和送货地址资料。您可以使用以下内容,这肯定会起作用。

$xml = new AuthnetXML(AUTHNET_LOGIN, AUTHNET_TRANSKEY, AuthnetXML::USE_DEVELOPMENT_SERVER);
$xml->deleteCustomerProfileRequest(array(
    'customerProfileId' => '5427896'
));

最初引用自:https ://github.com/stymiee/Authorize.Net-XML/blob/master/examples/cim/deleteCustomerProfileRequest.php

于 2019-09-12T06:02:29.230 回答