我正在尝试在CIM的实时网关上创建客户个人资料,但是我被拒绝错误:“E00027有一个或多个缺少或无效的必填字段”。这是我的要求:
<?xml version="1.0" encoding="UTF-8"?>
<createCustomerProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>-removed-</name>
<transactionKey>-removed-</transactionKey>
</merchantAuthentication>
<profile>
<description>Anush (4f293e17536e86bc66000000)</description>
<email>anush@foobar.com</email>
<paymentProfiles>
<billTo>
<firstName />
<lastName />
<company />
<address />
<city />
<state />
<zip>94111</zip>
<country />
</billTo>
<payment>
<creditCard>
<cardNumber>-removed-</cardNumber>
<expirationDate>2016-12</expirationDate>
<cardCode>-removed-</cardCode>
</creditCard>
</payment>
</paymentProfiles>
</profile>
<validationMode>liveMode</validationMode>
</createCustomerProfileRequest>
这是一个回复,上面写着“有一个或多个缺少或无效的必填字段”
<?xml version="1.0" encoding="UTF-8"?>
<createCustomerProfileResponse xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<messages>
<resultCode>Error</resultCode>
<message>
<code>E00027</code>
<text>There is one or more missing or invalid required fields.</text>
</message>
</messages>
<customerPaymentProfileIdList />
<customerShippingAddressIdList />
<validationDirectResponseList>
<string>3,1,290,There is one or more missing or invalid required fields.,,P,0,none,Test transaction for ValidateCustomerPaymentProfile.,0.00,CC,auth_only,,,,,,,,94111,,,,anush@xola.com,,,,,,,,,0.00,0.00,0.00,FALSE,none,F68A9C87C1E1472521704EF38C21F647,,,,,,,,,,,,,XXXX1234,Visa,,,,,,,,,,,,,,,,</string>
</validationDirectResponseList>
</createCustomerProfileResponse>
响应中的错误代码 290 表示我缺少AVS(地址)信息(来自the documentation)。我有邮政编码,但我没有帐单邮寄地址。如何在不指定帐单邮寄地址的情况下创建客户资料?
所有这些在沙盒上的开发者模式下都有效,但它似乎在实时网关上失败了。这里的任何帮助将不胜感激。
由于
如是
答案 0 :(得分:1)
您必须将ZIP和地址包含在PaymentProfile中。