Reply
Highlighted
Member
Posts: 8
Registered: ‎07-15-2011
Accepted Solution

CIM sample code dies

The PHP CIM sample code provided by Authorize.net (here) does not work. 


  • Download and expand zip file
  • Modify 'vars.php' with login id and trans key.
  • Point browser to index.php from CIM zip file.
  • Choose 'Create Customer Profile'. On return, customerProfileId is populated with returned id.
  • Choose 'Create Customer Payment Profile'.
  • Error returned: [E00027] There is one or more missing or invalid required fields.

Accepted Solutions
Highlighted
Solution
Accepted by topic author reachpeople64
‎08-21-2015 01:58 AM
Member
Posts: 8
Registered: ‎07-15-2011

Re: CIM sample code dies

After comparing the CIM docs for createCustomerPaymentProfileRequest to the sample code, I found no missing *required* fields, so that meant one of the fields was invalid. It was the credit card number - the credit card number used by the sample code is invalid. I replaced the one in the sample code with one of the test card numbers and it works now.

While poking around looking for CIM examples/docs/etc I found a CIM class in the lib directory of the SDK - AuthorizeNetCIM. Are there any docs or examples on the usage of this class?

 

thanks,

Chris

View solution in original post


All Replies
Highlighted
Solution
Accepted by topic author reachpeople64
‎08-21-2015 01:58 AM
Member
Posts: 8
Registered: ‎07-15-2011

Re: CIM sample code dies

After comparing the CIM docs for createCustomerPaymentProfileRequest to the sample code, I found no missing *required* fields, so that meant one of the fields was invalid. It was the credit card number - the credit card number used by the sample code is invalid. I replaced the one in the sample code with one of the test card numbers and it works now.

While poking around looking for CIM examples/docs/etc I found a CIM class in the lib directory of the SDK - AuthorizeNetCIM. Are there any docs or examples on the usage of this class?

 

thanks,

Chris