开发者

CodeIgniter and Authorize.net CIM library

I'm trying to use the authorize.net library for CI2.0 from https://github.com/cloudmanic/codeignitor-authorizenet-cim-library

When running fulltest() 开发者_开发问答which is the first function in the controller I get:

Creating Customer Profile - create_customer_profile()

Error: The element 'createCustomerProfileRequest' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'createCustomerProfileRequest' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'validationMode' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.


That error means one of the XML nodes is in the wrong place. Authorize.Net's API is very picky about the format of any XML sent to it. It's hard to say for sure exactly what the error is without seeing the XML generated but it probably has to do with the validationMode element being placed incorrectly.

You can see what a valid XML format looks like in the CIM Guide on page 26.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜