【问题标题】:Transaction ID for Authnet CIM TransactionAuthnet CIM 事务的事务 ID
【发布时间】:2013-07-11 23:31:03
【问题描述】:

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

【问题讨论】:

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


    【解决方案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

    【讨论】:

    • 这真的是最好的方法吗?
    猜你喜欢
    • 2015-02-24
    • 2014-08-14
    • 2013-06-22
    • 1970-01-01
    • 2015-08-30
    • 1970-01-01
    • 1970-01-01
    • 2010-12-02
    • 2019-05-20
    相关资源
    最近更新 更多