여러 결제 프로필 (CIM)을 사용하여 고객 프로필을 만드는 방법은 무엇입니까?여러 결제 프로필 (CIM)을 사용하여 고객 프로필을 만드는 방법은 무엇입니까?
단일 결제 프로필로 고객 프로필을 만드는 것이 좋습니다. 하지만 고객 프로필에 두 개 이상의 결제 프로필을 추가하려고하면 아래 오류가 표시됩니다.
E00003 - 네임 스페이스 요소 'paymentProfiles' 'AnetApi/XML/V1/스키마/AnetApiSchema.xsd는'네임 스페이스에 잘못된 자식 요소 'customerType을'이 'AnetApi/XML/V1/스키마/AnetApiSchema.xsd' . 가능한 요소 목록 : 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'네임 스페이스의 'driversLicense, taxId'
for (int 1=0;i< n;i++){
list.add (createPaymentProfile());
}
Transaction.setPaymentProfileList(list);
상기 코드는 다음과 같이 XML을 생성한다.
<?xml version="1.0" encoding="UTF-8"?>
<createCustomerProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>33k7hYV736488Bs8</name>
<transactionKey>86SV776773Ac6tMV22313fE</transactionKey>
</merchantAuthentication>
<refId>1361101257555</refId>
<profile>
<merchantCustomerId>2CLINC056</merchantCustomerId>
<description>hiiiiii.</description>
<email />
<paymentProfiles>
<customerType>individual</customerType>
<billTo>
<firstName>Joe</firstName>
<lastName>Test</lastName>
<company>CompanyA</company>
<address>hello</address>
<city>Bangalore</city>
<state>Delhi</state>
<zip>560078</zip>
<country>IN</country>
<phoneNumber>415-555-1212</phoneNumber>
<faxNumber>415-555-1313</faxNumber>
</billTo>
<payment>
<creditCard>
<cardNumber>370000000000002</cardNumber>
<expirationDate>2029-12</expirationDate>
</creditCard>
</payment>
<customerType>individual</customerType>
<billTo>
<firstName>Joe</firstName>
<lastName>Test</lastName>
<company>CompanyA</company>
<address>vel</address>
<city>Chennai</city>
<state>AK</state>
<zip>560089</zip>
<country>US</country>
<phoneNumber>415-555-1212</phoneNumber>
<faxNumber>415-555-1313</faxNumber>
</billTo>
<payment>
<creditCard>
<cardNumber>38000000000006</cardNumber>
<expirationDate>2029-12</expirationDate>
</creditCard>
</payment>
</paymentProfiles>
</profile>
<validationMode>testMode</validationMode>
</createCustomerProfileRequest>