cancel
Showing results for 
Search instead for 
Did you mean: 

CIM Integration Trouble with PHP SDK

Hello,

 

I downloaded the CIM PHP SDK and the only modification that I have made is my login name and transaction key.

 

The code shows that I'm submitting the following raw xml:

 

<?xml version="1.0" encoding="utf-8"?><createCustomerProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"><merchantAuthentication><name>5djf6JgTKT6u</name><transactionKey>76kD2229YPmN9Px8</transactionKey></merchantAuthentication><profile><merchantCustomerId>1108300925</merchantCustomerId><description></description><email>tawni@168tickets.com</email></profile></createCustomerProfileRequest>

 

I'm getting the following response:

 

<?xml version="1.0" encoding="utf-8"?><ErrorResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"><messages><resultCode>Error</resultCode><message><code>E00003</code><text>Data at the root level is invalid. Line 1, position 1.</text></message></messages></ErrorResponse>

 

When I submit the same raw XML using https://www.itdevworks.com/tools/AuthnetXmlApiTester/AnetXmlApiTester.asp?action=submit

 

I get the following response:

 

<createCustomerProfileResponse  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns:xsd="http://www.w3.org/2001/XMLSchema"  xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">  <messages>    <resultCode>      Ok    </resultCode>    <message>      <code>        I00001      </code>      <text>        Successful.      </text>    </message>  </messages>  <customerProfileId>    4485460  </customerProfileId>  <customerPaymentProfileIdList>  </customerPaymentProfileIdList>  <customerShippingAddressIdList>  </customerShippingAddressIdList>  <validationDirectResponseList>  </validationDirectResponseList></createCustomerProfileResponse>

 

So, it appears that somehow the SDK code has some sort of error.  Anyone know of any erros with the SDK code that needs fixed (I've had to fix authorize.net's code in the past). There are no parse errors, it must be something in the formatting of the XML.

 

I'd be glad to pay for some consulting time for help with this as I'm up against a deadline.

 

I look forward to your response.

joekerns168
Member
1 REPLY 1

I downloaded a newer SDK that appears to be working...

 

If you are getting an error, try the latest SDK.

joekerns168
Member