@@ -35,7 +35,7 @@ public function checkWalletBalance(): JsonResponse|array
35
35
'mo ' => $ this ->getCellNumber (),
36
36
'hi ' => $ this ->getParameters ('host_id ' ),
37
37
'walet ' => 5 ,
38
- 'htran ' => random_int ( 5000 , 50000 ). time (),
38
+ 'htran ' => $ this -> getTransaction ()-> getWalletTransactionId (),
39
39
'hop ' => AsanpardakhtStatusEnum::WalletBalanceHop->value ,
40
40
'htime ' => time (),
41
41
'hkey ' => $ this ->getParameters ('api_key ' ),
@@ -121,12 +121,12 @@ public function payByWallet(): JsonResponse|array
121
121
try {
122
122
$ hostRequest = $ this ->prepareJsonString ([
123
123
'caurl ' => $ this ->getParameters ('callback_url ' ),
124
- 'pid ' => $ this ->hashParam ($ this ->transaction ->id ),
124
+ 'pid ' => $ this ->hashParam ($ this ->getTransaction () ->id ),
125
125
'ao ' => $ this ->getTransaction ()->getPayableAmount (),
126
126
'mo ' => $ this ->getCellNumber (),
127
127
'hi ' => $ this ->getParameters ('host_id ' ),
128
128
'walet ' => 5 ,
129
- 'htran ' => $ this ->transaction ->getWalletTransactionId (),
129
+ 'htran ' => $ this ->getTransaction () ->getWalletTransactionId (),
130
130
'hop ' => AsanpardakhtStatusEnum::PayByWalletHop->value ,
131
131
'htime ' => time (),
132
132
'stime ' => time (),
@@ -189,7 +189,7 @@ public function reverseWalletPaymentResult(): mixed
189
189
'mo ' => $ this ->getCellNumber (),
190
190
'hi ' => $ this ->getParameters ('host_id ' ),
191
191
'walet ' => 5 ,
192
- 'htran ' => $ this ->transaction ->getWalletTransactionId (),
192
+ 'htran ' => $ this ->getTransaction () ->getWalletTransactionId (),
193
193
'hop ' => AsanpardakhtStatusEnum::ReverseRequestHop->value ,
194
194
'htime ' => $ time ,
195
195
'stime ' => $ time ,
@@ -232,7 +232,7 @@ public function walletCharge(): JsonResponse|array
232
232
'mo ' => $ this ->getCellNumber (),
233
233
'hi ' => $ this ->getParameters ('host_id ' ),
234
234
'walet ' => 5 ,
235
- 'htran ' => $ this ->transaction ->getWalletTransactionId (),
235
+ 'htran ' => $ this ->getTransaction () ->getWalletTransactionId (),
236
236
'hop ' => AsanpardakhtStatusEnum::ChargeWallet->value ,
237
237
'htime ' => time (),
238
238
'stime ' => time (),
0 commit comments