Skip to content

Commit a26d0d9

Browse files
committed
changed wallet charge generate method
1 parent 0569cd8 commit a26d0d9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Provider/AsanPardakhtProvider.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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->getTransaction()->getWalletTransactionId(),
235+
'htran' => $this->getWalletChargeTransactionId(),
236236
'hop' => AsanpardakhtStatusEnum::ChargeWallet->value,
237237
'htime' => time(),
238238
'stime' => time(),
@@ -400,4 +400,9 @@ public function refundWalletPaymentResult(): mixed
400400

401401
return $result;
402402
}
403+
404+
private function getWalletChargeTransactionId(): int
405+
{
406+
return 900000000000 + time();
407+
}
403408
}

0 commit comments

Comments
 (0)