Skip to content

Commit

Permalink
fixed getTransaction calls
Browse files Browse the repository at this point in the history
  • Loading branch information
samuraee committed Jun 29, 2023
1 parent a9a407d commit 0569cd8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Provider/AsanPardakhtProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function checkWalletBalance(): JsonResponse|array
'mo' => $this->getCellNumber(),
'hi' => $this->getParameters('host_id'),
'walet' => 5,
'htran' => random_int(5000, 50000).time(),
'htran' => $this->getTransaction()->getWalletTransactionId(),
'hop' => AsanpardakhtStatusEnum::WalletBalanceHop->value,
'htime' => time(),
'hkey' => $this->getParameters('api_key'),
Expand Down Expand Up @@ -121,12 +121,12 @@ public function payByWallet(): JsonResponse|array
try {
$hostRequest = $this->prepareJsonString([
'caurl' => $this->getParameters('callback_url'),
'pid' => $this->hashParam($this->transaction->id),
'pid' => $this->hashParam($this->getTransaction()->id),
'ao' => $this->getTransaction()->getPayableAmount(),
'mo' => $this->getCellNumber(),
'hi' => $this->getParameters('host_id'),
'walet' => 5,
'htran' => $this->transaction->getWalletTransactionId(),
'htran' => $this->getTransaction()->getWalletTransactionId(),
'hop' => AsanpardakhtStatusEnum::PayByWalletHop->value,
'htime' => time(),
'stime' => time(),
Expand Down Expand Up @@ -189,7 +189,7 @@ public function reverseWalletPaymentResult(): mixed
'mo' => $this->getCellNumber(),
'hi' => $this->getParameters('host_id'),
'walet' => 5,
'htran' => $this->transaction->getWalletTransactionId(),
'htran' => $this->getTransaction()->getWalletTransactionId(),
'hop' => AsanpardakhtStatusEnum::ReverseRequestHop->value,
'htime' => $time,
'stime' => $time,
Expand Down Expand Up @@ -232,7 +232,7 @@ public function walletCharge(): JsonResponse|array
'mo' => $this->getCellNumber(),
'hi' => $this->getParameters('host_id'),
'walet' => 5,
'htran' => $this->transaction->getWalletTransactionId(),
'htran' => $this->getTransaction()->getWalletTransactionId(),
'hop' => AsanpardakhtStatusEnum::ChargeWallet->value,
'htime' => time(),
'stime' => time(),
Expand Down

0 comments on commit 0569cd8

Please sign in to comment.