2011-02-18 2 views
0

내 프로젝트에서 각 사용자 등록에 대한 Authorize.net (CIM)의 고객 프로필 (지불 프로필 아님)을 만들고 있습니다. . 이 고객 프로필을 삭제해야합니다 (결제 프로필 아님). 즉, 사이트 관리자가이 프로젝트에서 각 사용자를 삭제할 때 Authorize.net 판매자 계정에서 고객 프로필을 삭제해야합니다.Authorize.net CIM - Authorize.net에서 고객 프로필을 삭제하는 방법 CIM

제발 도와주세요 !!!! 57 페이지의 Authorize.Net CIM XML Guide 사용 deleteCustomerProfileResponse API 호출 당으로

답변

2

:이 기능은 과 함께 모든 관련 고객 지불 프로파일 및 고객 배송 주소를 기존 고객 프로파일을 삭제하는 데 사용됩니다

.

<?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> 
+0

덕분에이 방법을 사용하려면 .. "customerProfileId"를 어떻게 얻을 수 있습니까? 왜냐하면 저는 고객 프로필을 만들고 있기 때문에 프로필을 만들 때 MerchantCustomerId 만 전달하고 있기 때문입니다. Authorize.net CIM 계정에서이 프로필을 확인한 후에 각 프로필에 대해 accountID (MerchantCustomerId)와 profileID의 두 ID가 있으며 MerchantCustomerId 만 전달하므로 프로필 ID를 동적으로 가져올 수 있습니까? – user588575

+2

프로필이 생성되면 프로필 ID가 반환됩니다. 해당 사용자를 검색하여 나중에 해당 API 호출을 할 때 사용할 수 있도록 데이터베이스에 저장해야합니다. –

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/>"; 
     }  

    } 
관련 문제