Skip to content

Commit 415c9fd

Browse files
committed
paymentMethod
1 parent 640e9e5 commit 415c9fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Message/XWallet/PurchaseRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ public function getFirmOrderNo()
3535
*/
3636
public function setPayType($value)
3737
{
38-
return $this->setParameter('PayType', $value);
38+
return $this->setPaymentMethod($value);
3939
}
4040

4141
/**
4242
* @return ?int
4343
*/
4444
public function getPayType()
4545
{
46-
return $this->getParameter('PayType');
46+
return $this->getPaymentMethod();
4747
}
4848

4949
/**
@@ -91,7 +91,7 @@ public function getData()
9191
{
9292
return [
9393
'FirmOrderNo' => $this->getTransactionId(),
94-
'PayType' => (int) $this->getPayType() ?: 1,
94+
'PayType' => (int) $this->getPaymentMethod() ?: 1,
9595
'Price' => (int) $this->getAmount(),
9696
'Mobile' => $this->getMobile(),
9797
];

0 commit comments

Comments
 (0)