<?php 
// 超商取貨逆物流訂單(全家超商B2C)
define('HOME_URL', 'http://www.sample.com.tw/logistics_dev');
require 'AllPay.Logistics.Integration.php';
try {
    $AL = new AllpayLogistics();
    $AL->HashKey = '5294y06JbISpM5x9';
    $AL->HashIV = 'v77hoKGq4kWxNNIS';
    $AL->Send = array('MerchantID' => '2000132', 'AllPayLogisticsID' => '15624', 'ServerReplyURL' => HOME_URL . '/ServerReplyURL.php', 'GoodsName' => '測試商品A#測試商品B', 'GoodsAmount' => 1500, 'SenderName' => '歐付寶(寄)', 'SenderPhone' => '0226550115', 'Remark' => '測試備註', 'Quantity' => '1#2', 'Cost' => '100#700', 'PlatformID' => '');
    // CreateFamilyB2CReturnOrder()
    $Result = $AL->CreateFamilyB2CReturnOrder();
    echo '<pre>' . print_r($Result, true) . '</pre>';
} catch (Exception $e) {
    echo $e->getMessage();
}
    unset($e);
}
assert_internal_type("array", gettype($sTest_Result), $sTest_Subject);
unset($sHome_URL, $oA_L, $sTest_Subject, $sTest_Result);
/**
 * 超商取貨逆物流訂單(全家超商 B2C)(CreateFamilyB2CReturnOrder)
 */
$sTest_Subject = "allPay 超商取貨逆物流訂單(全家超商 B2C)(CreateFamilyB2CReturnOrder)";
$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" => "15614", "ServerReplyURL" => $sHome_URL . "/ServerReplyURL.php", "GoodsName" => "測試商品 A#測試商品 B", "GoodsAmount" => 1500, "SenderName" => "歐付寶(寄)", "SenderPhone" => "0226550115", "Remark" => "測試備註", "Quantity" => "1#2", "Cost" => "100#700", "PlatformID" => "");
    $sTest_Result = $oA_L->CreateFamilyB2CReturnOrder();
} 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);
/**
 * 全家逆物流核帳(全家超商 B2C)(CheckFamilyB2CLogistics)
 */
$sTest_Subject = "allPay 全家逆物流核帳(全家超商 B2C)(CheckFamilyB2CLogistics)";
$sTest_Result = "";
$sHome_URL = "http://www.sample.com.tw";
try {
    $oA_L = new AllpayLogistics();
    $oA_L->HashKey = TestMerchantInfo::HASH_KEY;