I am setting up my script with the CIM API.
My question is, is there a way to return the transaction id for the transaction what was just processed?
I have this at the end so far:
if ($cim->isSuccessful())
{
$approval_code = $cim->getAuthCode();
}
// Print the results of the request
echo '<strong> Response Summary:</strong> ' .
$cim->getResponseSummary() . '';
echo '<strong>Approval code:</strong> ' . $approval_code;
}
But that doesnt give me anything on the transaction id. I need that number and write to my database, so if I can't get the trans id this way, is there a better/different way to get it?
Thank you.
07-03-2013 08:23 AM
The transactionID should return with the authorization code. Not sure how you do that in php.
07-03-2013 09:43 AM
I get the following for the output:
Request Response Summary: Response code: I00001 Message: Successful.Approval code: EMUXHV
I don't get anything close to the transaction id. Am I requesting the wrong response or something?
07-03-2013 10:18 AM
doesn't look like you getting the whole response. It should look like something like page 84 on the xml documentation
07-03-2013 11:13 AM
Hello,
I noticed you found your own answer and posted to stackoverflow. For the benefit of others, I'm going to add your your solution here:
$trans_id = $cim->getTransactionID();
Richard
07-04-2013 02:07 PM