<?php // 廠商修改物流資訊(統一超商B2C) require 'AllPay.Logistics.Integration.php'; try { $AL = new AllpayLogistics(); $AL->HashKey = '5294y06JbISpM5x9'; $AL->HashIV = 'v77hoKGq4kWxNNIS'; $AL->Send = array('MerchantID' => '2000132', 'AllPayLogisticsID' => '15627', 'ShipmentDate' => date('Y/m/d', strtotime('+1 day')), 'ReceiverStoreID' => '991182', 'PlatformID' => ''); // UpdateUnimartLogisticsInfo() $Result = $AL->UpdateUnimartLogisticsInfo(); 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); /** * 廠商修改物流資訊(統一超商 B2C)(UpdateUnimartLogisticsInfo) */ $sTest_Subject = "allPay 廠商修改物流資訊(統一超商 B2C)(UpdateUnimartLogisticsInfo)"; $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" => "15627", "ShipmentDate" => date("Y/m/d", strtotime("+1 day")), "ReceiverStoreID" => "991182", "PlatformID" => ""); // UpdateUnimartLogisticsInfo() $sTest_Result = $oA_L->UpdateUnimartLogisticsInfo(); } 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); /** * 更新門市(統一超商 C2C)(UpdateUnimartStore) */ $sTest_Subject = "allPay 更新門市(統一超商 C2C)(UpdateUnimartStore)"; $sTest_Result = ""; $sHome_URL = "http://www.sample.com.tw"; try { $oA_L = new AllpayLogistics(); $oA_L->HashKey = TestC2CMerchantInfo::HASH_KEY;