fix bug of pargar

This commit is contained in:
2026-07-26 14:15:26 +03:30
parent 667e3736fb
commit 06b3113b98
17 changed files with 561 additions and 26 deletions
@@ -391,6 +391,22 @@ class WalletController extends Controller
'withdraw_id' => $Withdraw->id,
'active' => true
], 4, false, false);
try {
app(\App\Services\PargarSyncService::class)->queueWalletDocument(
$customer,
'cash',
-1 * (float) $data['value'],
[
'withdraw_id' => $Withdraw->id,
'note' => 'برداشت ریالی',
'source' => 'customer_withdraw',
]
);
} catch (\Throwable $e) {
report($e);
}
$userMobile = $customer->mobile; // User's mobile number
$userName = $customer->name; // User's name
$withdrawAmount = $data['value']; // amount