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()
8585 'PaymentType ' => $ this ->getPaymentType (),
8686 'TotalAmount ' => (int ) $ amount ,
8787 'TradeDesc ' => UrlService::ecpayUrlEncode ($ this ->getDescription ()),
88- 'ChoosePayment ' => $ this ->getChoosePayment (),
88+ 'ChoosePayment ' => $ this ->getChoosePayment () ?: ' ALL ' ,
8989 'Remark ' => $ this ->getRemark (),
9090 'ChooseSubPayment ' => $ this ->getChooseSubPayment (),
9191 'NeedExtraPaidInfo ' => $ this ->getNeedExtraPaidInfo (),
Original file line number Diff line number Diff line change @@ -69,7 +69,9 @@ public function getTradeDesc()
6969
7070 /**
7171 * 選擇預設 付款方式
72- * 綠界提供下列付款方式,請於建立訂單 時傳送過來: Credit:信用卡及銀聯卡(需申請開通) WebATM:網路 ATM
72+ * 綠界提供下列付款方式,請於建立訂單 時傳送過來:
73+ * Credit:信用卡及銀聯卡(需申請開通)
74+ * WebATM:網路 ATM
7375 * ATM:自動櫃員機
7476 * CVS:超商代碼
7577 * BARCODE:超商條碼 ALL:不指定付款方式,由綠界顯示付款 方式選擇頁面。
@@ -80,15 +82,15 @@ public function getTradeDesc()
8082 */
8183 public function setChoosePayment ($ value )
8284 {
83- return $ this ->setParameter ( ' ChoosePayment ' , $ value );
85+ return $ this ->setPaymentMethod ( $ value );
8486 }
8587
8688 /**
8789 * @return string
8890 */
8991 public function getChoosePayment ()
9092 {
91- return $ this ->getParameter ( ' ChoosePayment ' ) ?: ' ALL ' ;
93+ return $ this ->getPaymentMethod () ;
9294 }
9395
9496 /**
You can’t perform that action at this time.
0 commit comments