|
@@ 1389-1414 (lines=26) @@
|
| 1386 |
|
* @return string |
| 1387 |
|
* @version 1.0.1012 |
| 1388 |
|
*/ |
| 1389 |
|
public function PrintFamilyC2CBill($ButtonDesc = '全家列印小白單(全家超商C2C)', $Target = '_blank') |
| 1390 |
|
{ |
| 1391 |
|
|
| 1392 |
|
// 參數初始化 |
| 1393 |
|
$ParamList = [ |
| 1394 |
|
'MerchantID' => '', |
| 1395 |
|
'AllPayLogisticsID' => '', |
| 1396 |
|
'CVSPaymentNo' => '', |
| 1397 |
|
'PlatformID' => '', |
| 1398 |
|
]; |
| 1399 |
|
$this->PostParams = $this->GetPostParams($this->Send, $ParamList); |
| 1400 |
|
|
| 1401 |
|
// 參數檢查 |
| 1402 |
|
$this->ValidateHashKey(); |
| 1403 |
|
$this->ValidateHashIV(); |
| 1404 |
|
$this->ValidateID('MerchantID', $this->PostParams['MerchantID'], 10); |
| 1405 |
|
$this->ServiceURL = $this->GetURL('PRINT_FAMILY_C2C_BILL'); |
| 1406 |
|
$this->ValidateID('AllPayLogisticsID', $this->PostParams['AllPayLogisticsID'], 20); |
| 1407 |
|
$this->ValidateMixTypeID('CVSPaymentNo', $this->PostParams['CVSPaymentNo'], 15); |
| 1408 |
|
$this->ValidateID('PlatformID', $this->PostParams['PlatformID'], 10, true); |
| 1409 |
|
|
| 1410 |
|
// 產生 CheckMacValue |
| 1411 |
|
$this->PostParams['CheckMacValue'] = ECPay_CheckMacValue::generate($this->PostParams, $this->HashKey, $this->HashIV); |
| 1412 |
|
|
| 1413 |
|
return $this->GenPostHTML($ButtonDesc, $Target); |
| 1414 |
|
} |
| 1415 |
|
|
| 1416 |
|
/** |
| 1417 |
|
* 萊爾富列印小白單(萊爾富超商C2C). |
|
@@ 1426-1451 (lines=26) @@
|
| 1423 |
|
* @return string |
| 1424 |
|
* @version 1.0.1012 |
| 1425 |
|
*/ |
| 1426 |
|
public function PrintHiLifeC2CBill($ButtonDesc = '萊爾富列印小白單(萊爾富超商C2C)', $Target = '_blank') |
| 1427 |
|
{ |
| 1428 |
|
|
| 1429 |
|
// 參數初始化 |
| 1430 |
|
$ParamList = [ |
| 1431 |
|
'MerchantID' => '', |
| 1432 |
|
'AllPayLogisticsID' => '', |
| 1433 |
|
'CVSPaymentNo' => '', |
| 1434 |
|
'PlatformID' => '', |
| 1435 |
|
]; |
| 1436 |
|
$this->PostParams = $this->GetPostParams($this->Send, $ParamList); |
| 1437 |
|
|
| 1438 |
|
// 參數檢查 |
| 1439 |
|
$this->ValidateHashKey(); |
| 1440 |
|
$this->ValidateHashIV(); |
| 1441 |
|
$this->ValidateID('MerchantID', $this->PostParams['MerchantID'], 10); |
| 1442 |
|
$this->ServiceURL = $this->GetURL('Print_HILIFE_C2C_BILL'); |
| 1443 |
|
$this->ValidateID('AllPayLogisticsID', $this->PostParams['AllPayLogisticsID'], 20); |
| 1444 |
|
$this->ValidateMixTypeID('CVSPaymentNo', $this->PostParams['CVSPaymentNo'], 15); |
| 1445 |
|
$this->ValidateID('PlatformID', $this->PostParams['PlatformID'], 10, true); |
| 1446 |
|
|
| 1447 |
|
// 產生 CheckMacValue |
| 1448 |
|
$this->PostParams['CheckMacValue'] = ECPay_CheckMacValue::generate($this->PostParams, $this->HashKey, $this->HashIV); |
| 1449 |
|
|
| 1450 |
|
return $this->GenPostHTML($ButtonDesc, $Target); |
| 1451 |
|
} |
| 1452 |
|
|
| 1453 |
|
/** |
| 1454 |
|
* 產生 B2C 測標資料. |