【问题标题】:Authorize.net CIM: Creating customer profile without a billing addressAuthorize.net CIM:创建没有帐单地址的客户资料
【发布时间】:2015-01-20 03:52:09
【问题描述】:

我正在尝试在 live 网关上为 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)。我有邮政编码,但我没有帐单地址。如何在不指定帐单地址的情况下创建客户资料?

所有这些在沙盒上的开发人员模式下都有效,但在实时网关上似乎失败了。如有任何帮助,我们将不胜感激。

谢谢

拉什

【问题讨论】:

    标签: payment-gateway authorize.net authorize.net-cim


    【解决方案1】:

    您必须在 PaymentProfile 中包含 ZIP 和地址。

    【讨论】:

    • 不知何故我能够创建没有 zip 或地址的付款资料,但我无法更新它。插入和更新的必填字段是否不同?
    • 6 年多后,同样的问题......我可以创建但不能更新......
    猜你喜欢
    • 1970-01-01
    • 2012-02-11
    • 2012-11-13
    • 2012-10-30
    • 2016-01-05
    • 2013-03-17
    • 2013-09-18
    • 2019-08-02
    • 2018-02-21
    相关资源
    最近更新 更多