我想在沙箱帐户上做一些测试,并且根据文档(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>
我在这里错过了什么?这些字段实际上不是可选的吗?
我试过没有地址/ zip的万事达卡,但我仍然被拒绝。 – testing123 2016-02-04 17:28:13