Skip to content

Commit 08809e6

Browse files
committed
typo
1 parent 9f22614 commit 08809e6

14 files changed

+861
-259
lines changed

lib/ECPayAIO_PHP/AioSDK/sdk/ECPay.Payment.Integration.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,8 +606,6 @@ abstract class ECPay_Aio
606606

607607
protected static function ServerPost($parameters, $ServiceURL)
608608
{
609-
var_dump(123);
610-
exit;
611609
$ch = curl_init();
612610

613611
if (false === $ch) {

src/Traits/HasATMFields.php

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,26 @@
44

55
trait HasATMFields
66
{
7-
public function getExpireDate()
7+
/**
8+
* 允許繳費有效天數.
9+
*
10+
* 若需設定最長 60 天,最短 1 天。未設定此參數則預設為 3 天
11+
* 注意事項:
12+
* 以天為單位
13+
*
14+
* @param int $value
15+
* @return $this
16+
*/
17+
public function setExpireDate($value)
818
{
9-
return $this->getParameter('ExpireDate') ?: 3;
19+
return $this->setParameter('ExpireDate', $value);
1020
}
1121

12-
public function setExpireDate($value)
22+
/**
23+
* @return int|null
24+
*/
25+
public function getExpireDate()
1326
{
14-
return $this->setParameter('ExpireDate', $value);
27+
return $this->getParameter('ExpireDate') ?: 3;
1528
}
1629
}

src/Traits/HasATMOrCVSOrBARCODEFields.php

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,51 @@
44

55
trait HasATMOrCVSOrBARCODEFields
66
{
7-
public function getPaymentInfoURL()
8-
{
9-
return $this->getParameter('PaymentInfoURL');
10-
}
11-
7+
/**
8+
* Server 端回傳付款相關資訊.
9+
*
10+
* 若有設定此參數,訂單建立完成後(非 付款完成),綠界會 Server 端背景回傳消費者付款方式相關資訊(例:繳費代碼與繳費超商)。
11+
* 請參考[ATM、CVS 或 BARCODE 的取號 結果通知.]
12+
* 注意事項: 頁面將會停留在綠界,顯示繳費的相關 資訊。回傳只有三段號碼,並不會回傳條碼圖,需自行轉換成 code39 的三段條碼。
13+
*
14+
* @param string $value
15+
* @return $this
16+
*/
1217
public function setPaymentInfoURL($value)
1318
{
1419
return $this->setParameter('PaymentInfoURL', $value);
1520
}
1621

17-
public function getClientRedirectURL()
22+
/**
23+
* @return string|null
24+
*/
25+
public function getPaymentInfoURL()
1826
{
19-
return $this->getParameter('ClientRedirectURL');
27+
return $this->getParameter('PaymentInfoURL');
2028
}
2129

30+
/**
31+
* Client 端回傳付款方式.
32+
*
33+
* 若有設定此參數,訂單建立完成後(非付款完成),綠界會從 Client 端回傳消費者付款方式相關資訊(例:繳費代碼 與繳費超商)且將頁面轉到特店指定的 頁面。
34+
* 請參考[ATM、CVS 或 BARCODE 的取號 結果通知.]
35+
* 注意事項: 若設定此參數,將會使設定的返回特店 的按鈕連結[ClientBackURL]失效。
36+
*
37+
* 若導回網址未使用 https 時,部份瀏覽 器可能會出現警告訊息。回傳只有三段號碼,並不會回傳條碼圖,需自行轉換成 code39 的三段條碼。
38+
*
39+
* @param string $value
40+
* @return $this
41+
*/
2242
public function setClientRedirectURL($value)
2343
{
2444
return $this->setParameter('ClientRedirectURL', $value);
2545
}
46+
47+
/**
48+
* @return string|null
49+
*/
50+
public function getClientRedirectURL()
51+
{
52+
return $this->getParameter('ClientRedirectURL');
53+
}
2654
}

src/Traits/HasCVSOrBARCODEFields.php

Lines changed: 78 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,55 +2,118 @@
22

33
namespace Omnipay\ECPay\Traits;
44

5+
/**
6+
* 當 ChoosePayment 參數為使用 ALL 或 CVS 或 BARCODE 付款方式時:.
7+
*/
58
trait HasCVSOrBARCODEFields
69
{
7-
public function getDesc_1()
10+
/**
11+
* 超商繳費截止時間.
12+
*
13+
* 注意事項: CVS:以分鐘為單位
14+
* BARCODE:以天為單位 若未設定此參數,
15+
* CVS 預設為 10080 分 鐘(7 天);BARCODE 預設為 7 天。
16+
* 若需設定此參數,請於建立訂單時將此參數送給綠界。
17+
* 提醒您,CVS 帶入數值不可超過 86400 分鐘,超過時一律以 86400 分鐘計(60 天)
18+
* 例:08/01 的 20:15 分購買商品,繳費期限為 7 天,表示 8/08 的 20:15 分前您必須前往超商繳費。
19+
*
20+
* @param int $value
21+
* @return $this
22+
*/
23+
public function setStoreExpireDate($value)
824
{
9-
return $this->getParameter('Desc_1');
25+
return $this->setParameter('StoreExpireDate', $value);
1026
}
1127

28+
/**
29+
* @return int
30+
*/
31+
public function getStoreExpireDate()
32+
{
33+
return $this->getParameter('StoreExpireDate');
34+
}
35+
36+
/**
37+
* 交易描述 1.
38+
*
39+
* 若繳費超商為family(全家)或ibon(7-11) 時,會顯示在超商繳費平台螢幕上
40+
*
41+
* @param string $value
42+
* @return $this
43+
*/
1244
public function setDesc_1($value)
1345
{
1446
return $this->setParameter('Desc_1', $value);
1547
}
1648

17-
public function getDesc_2()
49+
/**
50+
* @return string|null
51+
*/
52+
public function getDesc_1()
1853
{
19-
return $this->getParameter('Desc_2');
54+
return $this->getParameter('Desc_1');
2055
}
2156

57+
/**
58+
* 交易描述 2.
59+
*
60+
* 若繳費超商為family(全家)或ibon(7-11) 時,會顯示在超商繳費平台螢幕上
61+
*
62+
* @param string $value
63+
* @return $this
64+
*/
2265
public function setDesc_2($value)
2366
{
2467
return $this->setParameter('Desc_2', $value);
2568
}
2669

27-
public function getDesc_3()
70+
/**
71+
* @return string|null
72+
*/
73+
public function getDesc_2()
2874
{
29-
return $this->getParameter('Desc_3');
75+
return $this->getParameter('Desc_2');
3076
}
3177

78+
/**
79+
* 交易描述 3.
80+
*
81+
* 若繳費超商為family(全家)或ibon(7-11) 時,會顯示在超商繳費平台螢幕上
82+
*
83+
* @param string $value
84+
* @return $this
85+
*/
3286
public function setDesc_3($value)
3387
{
3488
return $this->setParameter('Desc_3', $value);
3589
}
3690

37-
public function getDesc_4()
91+
/**
92+
* @return string|null
93+
*/
94+
public function getDesc_3()
3895
{
39-
return $this->getParameter('Desc_4');
96+
return $this->getParameter('Desc_3');
4097
}
4198

99+
/**
100+
* 交易描述 4.
101+
*
102+
* 若繳費超商為family(全家)或ibon(7-11) 時,會顯示在超商繳費平台螢幕上
103+
*
104+
* @param string $value
105+
* @return $this
106+
*/
42107
public function setDesc_4($value)
43108
{
44109
return $this->setParameter('Desc_4', $value);
45110
}
46111

47-
public function getStoreExpireDate()
48-
{
49-
return $this->getParameter('StoreExpireDate');
50-
}
51-
52-
public function setStoreExpireDate($value)
112+
/**
113+
* @return string|null
114+
*/
115+
public function getDesc_4()
53116
{
54-
return $this->setParameter('StoreExpireDate', $value);
117+
return $this->getParameter('Desc_4');
55118
}
56119
}

0 commit comments

Comments
 (0)