<?php 
// 取消訂單(統一超商C2C)
require '../lib/AllPay.Logistics.Integration.php';
try {
    $AL = new AllpayLogistics();
    $AL->HashKey = 'XBERn1YOvpM9nfZc';
    $AL->HashIV = 'h1ONHk4P4yqbl5LK';
    $AL->Send = array('MerchantID' => '2000933', 'AllPayLogisticsID' => '11796', 'CVSPaymentNo' => 'F0015091', 'CVSValidationNo' => '3207', 'PlatformID' => '');
    $Result = $AL->CancelUnimartLogisticsOrder();
    echo '<pre>' . print_r($Result, true) . '</pre>';
} catch (Exception $e) {
    echo $e->getMessage();
}
}
assert_internal_type("array", gettype($sTest_Result), $sTest_Subject);
unset($sHome_URL, $oA_L, $sTest_Subject, $sTest_Result);
/**
 * 取消訂單(統一超商 C2C)(CancelUnimartLogisticsOrder)
 */
$sTest_Subject = "allPay 取消訂單(統一超商 C2C)(CancelUnimartLogisticsOrder)";
$sTest_Result = "";
$sHome_URL = "http://www.sample.com.tw";
try {
    $oA_L = new AllpayLogistics();
    $oA_L->HashKey = TestMerchantInfo::HASH_KEY;
    $oA_L->HashIV = TestMerchantInfo::HASH_IV;
    $oA_L->Send = array("MerchantID" => TestMerchantInfo::MERCHANT_ID, "AllPayLogisticsID" => "15474", "CVSPaymentNo" => "F0015091", "CVSValidationNo" => "3207", "PlatformID" => "");
    // CancelUnimartLogisticsOrder()
    $sTest_Result = $oA_L->CancelUnimartLogisticsOrder();
} catch (Exception $e) {
    $sTest_Result = $e->getMessage();
    unset($e);
}
assert_internal_type("array", gettype($sTest_Result), $sTest_Subject);
unset($sHome_URL, $oA_L, $sTest_Subject, $sTest_Result);
/**
 * 物流訂單查詢(QueryLogisticsInfo)
 */
$sTest_Subject = "allPay 物流訂單查詢(QueryLogisticsInfo)";
$sTest_Result = "";
$sHome_URL = "http://www.sample.com.tw";
try {
    $oA_L = new AllpayLogistics();
    $oA_L->HashKey = TestMerchantInfo::HASH_KEY;