Skip to content

Commit 15a7e89

Browse files
committed
paymentMethod
1 parent bb34318 commit 15a7e89

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/Message/PurchaseRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(),

src/Traits/HasSendFields.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)