예제 #1
0
             print "ProductName      = [" . $detail->GetValue("ProductName") . "],";
             print "UnitPrice      = [" . $detail->GetValue("UnitPrice") . "],";
             print "Qty      = [" . $detail->GetValue("Qty") . "],";
             print "ProductRemarks      = [" . $detail->GetValue("ProductRemarks") . "],";
             print "<br/>";
         }
     }
     //获取分账账户信息
     $orderItems = $detail->GetArrayValue("Distribution");
     if (count($orderItems, COUNT_NORMAL) === 0) {
         print "分账账户信息明细为空<br/>";
     } else {
         foreach ($orderItems as $orderItem) {
             $detail = new Json($orderItems);
             print "分账账户信息明细为:<br/>";
             print "DisAccountNo      = [" . $detail->GetValue("DisAccountNo") . "],";
             print "DisAccountName      = [" . $detail->GetValue("DisAccountName") . "],";
             print "DisAmount      = [" . $detail->GetValue("DisAmount") . "],";
             print "<br/>";
         }
     }
 } else {
     if (payTypeID . equals("PreAuthed") || payTypeID . equals("PreAuthCancel")) {
         print "PayTypeID      = [" . $detail->GetValue("PayTypeID") . "]<br/>";
         print "OrderNo      = [" . $detail->GetValue("OrderNo") . "]<br/>";
         print "OrderDate      = [" . $detail->GetValue("OrderDate") . "]<br/>";
         print "OrderTime      = [" . $detail->GetValue("OrderTime") . "]<br/>";
         print "OrderAmount      = [" . $detail->GetValue("OrderAmount") . "]<br/>";
         print "Status      = [" . $detail->GetValue("Status") . "]<br/>";
         print "AcctNo      = [" . $detail->GetValue("AcctNo") . "]<br/>";
         print "iRspRef      = [" . $detail->GetValue("iRspRef") . "]<br/>";
예제 #2
0
    print "BatchTime    = [" . $tResponse->GetValue("BatchTime") . "]<br/>";
    print "AgentAmount  = [" . $tResponse->GetValue("AgentAmount") . "]<br/>";
    print "AgentCount    = [" . $tResponse->GetValue("AgentCount") . "]<br/>";
    print "BatchStatus    = [" . $tResponse->GetValue("BatchStatus") . "]<br/>";
    print "BatchStatusZH    = [" . $tRequest->getBatchSatusChinese($tResponse->GetValue("BatchStatus")) . "]<br/>";
    print "CurrencyCode    = [" . $tResponse->GetValue("CurrencyCode") . "]<br/>";
    print "SuccessAmount    = [" . $tResponse->GetValue("SuccessAmount") . "]<br/>";
    print "SuccessCount    = [" . $tResponse->GetValue("SuccessCount") . "]<br/>";
    print "FailedAmount    = [" . $tResponse->GetValue("FailedAmount") . "]<br/>";
    print "FailedCount    = [" . $tResponse->GetValue("FailedCount") . "]<br/>";
    //4、取得批量授权扣款明细
    $batchdetails = $tResponse->GetArrayValue("AgentBatchDetail");
    if (count($batchdetails, COUNT_NORMAL) === 0) {
        print "批量授权扣款明细为空<br/>";
    } else {
        foreach ($batchdetails as $batchdetail) {
            $detail = new Json($batchdetail);
            print "SeqNo   = [" . $detail->GetValue("SeqNo") . "],";
            print "OrderNo   = [" . $detail->GetValue("OrderNo") . "],";
            print "AcctNo   = [" . $detail->GetValue("AcctNo") . "],";
            print "OrderAmount = [" . $detail->GetValue("OrderAmount") . "],";
            print "AgentSignNo = [" . $detail->GetValue("AgentSignNo") . "],";
            print "OrderStatus  = [" . $detail->GetValue("OrderStatus") . "],";
            print "OrderStatusZH  = [" . tRequest . getBatchDetailStatusChinese($detail->GetValue("OrderStatus")) . "]<br/>";
        }
    }
} else {
    print "<br>Failed!!!" . "</br>";
    print "ReturnCode   = [" . $tResponse->getReturnCode() . "]</br>";
    print "ReturnMsg   = [" . $tResponse->getErrorMessage() . "]</br>";
}