Skip to content

Commit 0569cd8

Browse files
committed
fixed getTransaction calls
1 parent a9a407d commit 0569cd8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Provider/AsanPardakhtProvider.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function checkWalletBalance(): JsonResponse|array
3535
'mo' => $this->getCellNumber(),
3636
'hi' => $this->getParameters('host_id'),
3737
'walet' => 5,
38-
'htran' => random_int(5000, 50000).time(),
38+
'htran' => $this->getTransaction()->getWalletTransactionId(),
3939
'hop' => AsanpardakhtStatusEnum::WalletBalanceHop->value,
4040
'htime' => time(),
4141
'hkey' => $this->getParameters('api_key'),
@@ -121,12 +121,12 @@ public function payByWallet(): JsonResponse|array
121121
try {
122122
$hostRequest = $this->prepareJsonString([
123123
'caurl' => $this->getParameters('callback_url'),
124-
'pid' => $this->hashParam($this->transaction->id),
124+
'pid' => $this->hashParam($this->getTransaction()->id),
125125
'ao' => $this->getTransaction()->getPayableAmount(),
126126
'mo' => $this->getCellNumber(),
127127
'hi' => $this->getParameters('host_id'),
128128
'walet' => 5,
129-
'htran' => $this->transaction->getWalletTransactionId(),
129+
'htran' => $this->getTransaction()->getWalletTransactionId(),
130130
'hop' => AsanpardakhtStatusEnum::PayByWalletHop->value,
131131
'htime' => time(),
132132
'stime' => time(),
@@ -189,7 +189,7 @@ public function reverseWalletPaymentResult(): mixed
189189
'mo' => $this->getCellNumber(),
190190
'hi' => $this->getParameters('host_id'),
191191
'walet' => 5,
192-
'htran' => $this->transaction->getWalletTransactionId(),
192+
'htran' => $this->getTransaction()->getWalletTransactionId(),
193193
'hop' => AsanpardakhtStatusEnum::ReverseRequestHop->value,
194194
'htime' => $time,
195195
'stime' => $time,
@@ -232,7 +232,7 @@ public function walletCharge(): JsonResponse|array
232232
'mo' => $this->getCellNumber(),
233233
'hi' => $this->getParameters('host_id'),
234234
'walet' => 5,
235-
'htran' => $this->transaction->getWalletTransactionId(),
235+
'htran' => $this->getTransaction()->getWalletTransactionId(),
236236
'hop' => AsanpardakhtStatusEnum::ChargeWallet->value,
237237
'htime' => time(),
238238
'stime' => time(),

0 commit comments

Comments
 (0)