<?php 
// 全家逆物流核帳(全家超商B2C)
require '../lib/AllPay.Logistics.Integration.php';
try {
    $AL = new AllpayLogistics();
    $AL->HashKey = '5294y06JbISpM5x9';
    $AL->HashIV = 'v77hoKGq4kWxNNIS';
    $AL->Send = array('MerchantID' => '2000132', 'RtnMerchantTradeNo' => '1507031406014', 'PlatformID' => '');
    $Result = $AL->CheckFamilyB2CLogistics();
    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);
/**
 * 物流訂單查詢(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;
    $oA_L->HashIV = TestMerchantInfo::HASH_IV;
    $oA_L->Send = array("MerchantID" => TestMerchantInfo::MERCHANT_ID, "RtnMerchantTradeNo" => "1601121637065", "PlatformID" => "");
    // CheckFamilyB2CLogistics()
    $sTest_Result = $oA_L->CheckFamilyB2CLogistics();
} 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);
/**
 * 產生托運單(宅配)/一段標(超商取貨)(PrintTradeDoc)
 */
$sTest_Subject = "allPay 產生托運單(宅配)/一段標(超商取貨)(PrintTradeDoc)";
$sTest_Result = "";
$sHome_URL = "http://www.sample.com.tw";
try {
    $oA_L = new AllpayLogistics();
    $oA_L->HashKey = TestMerchantInfo::HASH_KEY;