2014-09-19 92 views
1

我想在沙箱帐户上做一些测试,并且根据文档(http://www.authorize.net/support/CIM_XML_guide.pdf)使用最小字段添加付款方式时出现了问题,但我似乎至少需要地址和ZIP 。以下是我发送的XML的两个编辑版本。Authorize.NET可选的CIM字段

这是一个功能,响应背部采用了良好的状态:

<?xml version="1.0" encoding="utf-8"?> 
<createCustomerPaymentProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"> 
    <merchantAuthentication> 
     <name>XXXXXXXXXXXX</name> 
     <transactionKey>XXXXXXXXXXXXXXXX</transactionKey> 
    </merchantAuthentication> 
    <customerProfileId>XXXXXXXX</customerProfileId> 
    <paymentProfile> 
     <customerType>individual</customerType> 
     <billTo> 
      <address>123 Main Street</address> 
      <zip>12345</zip> 
     </billTo> 
     <payment> 
      <creditCard> 
      <cardNumber>4007000000027</cardNumber> 
      <expirationDate>2015-09</expirationDate> 
      </creditCard> 
     </payment> 
    </paymentProfile> 
    <validationMode>liveMode</validationMode> 
</createCustomerPaymentProfileRequest> 

但是,当我带走的地址和邮政编码领域形成了付款资料部分,它失败了,通知我缺少的字段。

<?xml version="1.0" encoding="utf-8"?> 
<createCustomerPaymentProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"> 
    <merchantAuthentication> 
     <name>XXXXXXXXXXXX</name> 
     <transactionKey>XXXXXXXXXXXXXXXX</transactionKey> 
    </merchantAuthentication> 
    <customerProfileId>XXXXXXXX</customerProfileId> 
    <paymentProfile> 
     <customerType>individual</customerType> 
     <billTo> 
     </billTo> 
     <payment> 
      <creditCard> 
       <cardNumber>4007000000027</cardNumber> 
       <expirationDate>2015-09</expirationDate> 
      </creditCard> 
     </payment> 
    </paymentProfile> 
    <validationMode>liveMode</validationMode> 
</createCustomerPaymentProfileRequest> 

我在这里错过了什么?这些字段实际上不是可选的吗?

回答

1

因此,在做了更多的挖掘和阅读之后,事实证明,对于Visa卡而言,$ 0.00的交易需要billTo地址和zip字段。 CIM XML guide的第14页“对于使用$ 0.00的Visa交易,需要billTo地址和billTo zip字段。”

+0

我试过没有地址/ zip的万事达卡,但我仍然被拒绝。 – testing123 2016-02-04 17:28:13

0

检查您的设置以确保您不拒绝未通过AVS的交易。通过省略地址和邮政编码AVS不能执行,并且总是失败。

+0

检查了设置,发现许多字段默认设置为下降。移动他们所有允许和保存,但我仍然得到相同的错误。 – 2014-09-21 23:36:51

相关问题