Authnet CIM事务的事务ID

时间:2013-07-11 23:31:03

标签: php authorize.net authorize.net-cim

但是,我使用profileTransAuthCapture成功进行了CIM事务 如果它返回一个事务id,我在文档中找不到。我打印出答复,但我没有看到答案。在直接响应中有一个带有随机字符串的长字符串,我不确定是否有其中一个。有人知道吗?

1 个答案:

答案 0 :(得分:1)

这是该字符串中的第七个字段。要做到这一点,只需执行以下操作:

$response = explode(',', '1,1,1,This transaction has been approved.,S7GS9X,Y,2195560752,INV000001,description of transaction,10.95,CC,auth_capture,876571,John,Smith,,123 Main Street,Townsville,NJ,12345,,800-555-1234,,user@example.com,John,Smith,,123 Main Street,Townsville,NJ,12345,,1.00,,2.00,FALSE,PONUM000001,209D159CA9DB7377279D33A6A9E9678E,P,2,,,,,,,,,,,XXXX1111,Visa,,,,,,,,,,,,,,,,,18272830,100.0.0.1');
$transactionID = $response[6];
echo $transactionID;

See it in action