Skip to content

Commit

Permalink
changed wallet charge generate method
Browse files Browse the repository at this point in the history
  • Loading branch information
samuraee committed Jun 29, 2023
1 parent 0569cd8 commit a26d0d9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Provider/AsanPardakhtProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public function walletCharge(): JsonResponse|array
'mo' => $this->getCellNumber(),
'hi' => $this->getParameters('host_id'),
'walet' => 5,
'htran' => $this->getTransaction()->getWalletTransactionId(),
'htran' => $this->getWalletChargeTransactionId(),
'hop' => AsanpardakhtStatusEnum::ChargeWallet->value,
'htime' => time(),
'stime' => time(),
Expand Down Expand Up @@ -400,4 +400,9 @@ public function refundWalletPaymentResult(): mixed

return $result;
}

private function getWalletChargeTransactionId(): int
{
return 900000000000 + time();
}
}

0 comments on commit a26d0d9

Please sign in to comment.