Reply
Highlighted
Member
Posts: 2
Registered: ‎04-19-2012

CIM Error Code Help

I've been developing our website to use CIM. I have thoroughly tested it with my Authorize.net test account and everything works as expected. Today, I switched to the live account. The only change I made was to substitute the live Login ID and Transaction key into the script. Now it fails every time.

 

I need to determin the error code to better understand what is going on. I need help with the proper code to use to get the error code. My current code is:

 

$response = $request->createCustomerProfile($customerProfile);
if ($response->isOk()) {

// do stuff

}

else {

// Need help here

}

 

I need the correct php code to replace the Need help here comment.

 

Thanks.

Highlighted
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: CIM Error Code Help

And you change the URL to the production server?

Highlighted
Member
Posts: 2
Registered: ‎04-19-2012

Re: CIM Error Code Help

Of course that is what was causing the failure. However, I'd still like to see the code to get the actual error message.