We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 640e9e5 commit 415c9fdCopy full SHA for 415c9fd
src/Message/XWallet/PurchaseRequest.php
@@ -35,15 +35,15 @@ public function getFirmOrderNo()
35
*/
36
public function setPayType($value)
37
{
38
- return $this->setParameter('PayType', $value);
+ return $this->setPaymentMethod($value);
39
}
40
41
/**
42
* @return ?int
43
44
public function getPayType()
45
46
- return $this->getParameter('PayType');
+ return $this->getPaymentMethod();
47
48
49
@@ -91,7 +91,7 @@ public function getData()
91
92
return [
93
'FirmOrderNo' => $this->getTransactionId(),
94
- 'PayType' => (int) $this->getPayType() ?: 1,
+ 'PayType' => (int) $this->getPaymentMethod() ?: 1,
95
'Price' => (int) $this->getAmount(),
96
'Mobile' => $this->getMobile(),
97
];
0 commit comments