Skip to content

Commit c1700d1

Browse files
committed
paymentMethod
1 parent c174445 commit c1700d1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Message/PurchaseRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function getData()
3333
'ord_no' => $this->getTransactionId(),
3434
'ord_time' => $this->getOrdTime() ?? (new DateTime())->format('Y-m-d H:i:s'),
3535
'tx_type' => $this->getTxType() ?? '101',
36-
'pay_type' => $this->getPayType() ?? '1',
36+
'pay_type' => $this->getPaymentMethod() ?? '1',
3737
'amt' => $this->getAmount(),
3838
'cur' => $this->getCurrency() ?? 'NTD',
3939
'order_desc' => $this->getDescription(),

src/Traits/HasCreditCard.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ public function getOrdTime()
5252
*/
5353
public function setPayType($value)
5454
{
55-
return $this->setParameter('pay_type', $value);
55+
return $this->setPaymentMethod($value);
5656
}
5757

5858
public function getPayType()
5959
{
60-
return $this->getParameter('pay_type');
60+
return $this->getPaymentMethod();
6161
}
6262

6363
/**

0 commit comments

Comments
 (0)