File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ public function getData()
85
85
'PaymentType ' => $ this ->getPaymentType (),
86
86
'TotalAmount ' => (int ) $ amount ,
87
87
'TradeDesc ' => UrlService::ecpayUrlEncode ($ this ->getDescription ()),
88
- 'ChoosePayment ' => $ this ->getChoosePayment (),
88
+ 'ChoosePayment ' => $ this ->getChoosePayment () ?: ' ALL ' ,
89
89
'Remark ' => $ this ->getRemark (),
90
90
'ChooseSubPayment ' => $ this ->getChooseSubPayment (),
91
91
'NeedExtraPaidInfo ' => $ this ->getNeedExtraPaidInfo (),
Original file line number Diff line number Diff line change @@ -69,7 +69,9 @@ public function getTradeDesc()
69
69
70
70
/**
71
71
* 選擇預設 付款方式
72
- * 綠界提供下列付款方式,請於建立訂單 時傳送過來: Credit:信用卡及銀聯卡(需申請開通) WebATM:網路 ATM
72
+ * 綠界提供下列付款方式,請於建立訂單 時傳送過來:
73
+ * Credit:信用卡及銀聯卡(需申請開通)
74
+ * WebATM:網路 ATM
73
75
* ATM:自動櫃員機
74
76
* CVS:超商代碼
75
77
* BARCODE:超商條碼 ALL:不指定付款方式,由綠界顯示付款 方式選擇頁面。
@@ -80,15 +82,15 @@ public function getTradeDesc()
80
82
*/
81
83
public function setChoosePayment ($ value )
82
84
{
83
- return $ this ->setParameter ( ' ChoosePayment ' , $ value );
85
+ return $ this ->setPaymentMethod ( $ value );
84
86
}
85
87
86
88
/**
87
89
* @return string
88
90
*/
89
91
public function getChoosePayment ()
90
92
{
91
- return $ this ->getParameter ( ' ChoosePayment ' ) ?: ' ALL ' ;
93
+ return $ this ->getPaymentMethod () ;
92
94
}
93
95
94
96
/**
You can’t perform that action at this time.
0 commit comments