Reply
Regular Contributor
Posts: 82
Registered: ‎02-15-2013
Accepted Solution

Is response code the same for AIM and CIM

Is the response code the same for AIM and CIM?  I have a AIM shopping cart and it checks if "1" or "4" is returned.  But in my CIM method it returns "I001" ok.


Accepted Solutions
Solution
Accepted by topic author mallen
‎08-21-2015 01:58 AM
Regular Contributor
Posts: 82
Registered: ‎02-15-2013

Re: Is response code the same for AIM and CIM

I got it finally. I wasn't sire how to get the individual values of the string. Here it is. I tested it and can get any value now by changing the number in [0].

 

$splitted = explode(',', $xml->directResponse);
echo  $splitted[0] .

View solution in original post


All Replies
Regular Contributor
Posts: 82
Registered: ‎02-15-2013

Re: Is response code the same for AIM and CIM

4=This transaction is being held for review.  (AIM)


1=This transaction has been approved. (AIM)

 

I00001 = Successful The request was processed successfully. (CIM)

 

 

What is the code for transaction held for review in CIM?

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

Re: Is response code the same for AIM and CIM

Read the XML pdf http://developer.authorize.net/api/cim/

Page 83

Regular Contributor
Posts: 82
Registered: ‎02-15-2013

Re: Is response code the same for AIM and CIM

Yes I have read that but it didnt have the answer I was looking for. How about page 112?

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

Re: Is response code the same for AIM and CIM

Is the directResponse, it the same response as AIM

Regular Contributor
Posts: 82
Registered: ‎02-15-2013

Re: Is response code the same for AIM and CIM

Not sure what you are writing. There are some words missing or I am comprehending your response.

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

Re: Is response code the same for AIM and CIM

Sorry didn't want to copy and paste what in the pdf

page 83

<?xml version="1.0" encoding="utf-8"?>
<createCustomerProfileTransactionResponse xmlns="AnetApi/xml/v1/schema/
AnetApiSchema.xsd">
<messages>
<resultCode>Ok</resultCode>
<message>
<code>I00001</code>
<text>Successful.</text>
</message>
</messages>
<directResponse>1,1,1,This transaction has been
approved.,000000,Y,2000000001,INV000001,description of
transaction,10.95,CC,auth_capture,custId123,John,Doe,,123 Main
St.,Bellevue,WA,98004,USA,000-000-0000,,mark@example.com,John,Doe,,123
Main St.,Bellevue,WA,98004,USA,1.00,0.00,2.00,FALSE,PONUM000001,
D18EB6B211FE0BBF556B271FDA6F92EE,M,2,,,,,,,,,,,,,,,,,,,,,,,,,,,,
</directResponse>
</createCustomerProfileTransactionResponse>

 See the directResponse node. That the same response if you use AIM.

 

 

 

Regular Contributor
Posts: 82
Registered: ‎02-15-2013

Re: Is response code the same for AIM and CIM

[ Edited ]

Ok thanks for the info. But maybe I am just getting the terms response code and result code confused.

The documentation for AIM says 4=This transaction is being held for review.

I am not concerned with the result of "OK" or "Success".

1=This transaction has been approved. (AIM)

 

I don't see anything in the CIM documentaton that there is a similar message and code for "4"

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

Re: Is response code the same for AIM and CIM

That ok mean the CIM process successfully. You will have to look at the directResponse to get the response.

Highlighted
Regular Contributor
Posts: 82
Registered: ‎02-15-2013

Re: Is response code the same for AIM and CIM

Ok so its the direct response code I should be looking for. So 1="success"  4="This transaction is being held for review".   IS that correct? This is the same for AIM and CIM?