fix pargar bug
This commit is contained in:
@@ -182,6 +182,21 @@ class paypingController extends Controller
|
||||
'active' => true,
|
||||
], 3, false, true);
|
||||
|
||||
try {
|
||||
app(\App\Services\PargarSyncService::class)->queueWalletDocument(
|
||||
$User,
|
||||
'cash',
|
||||
(float) ($GTransaction['amount'] * 10),
|
||||
[
|
||||
'withdraw_id' => $Withdraw->id,
|
||||
'note' => 'واریز درگاه',
|
||||
'source' => 'gateway',
|
||||
]
|
||||
);
|
||||
} catch (\Throwable $e) {
|
||||
report($e);
|
||||
}
|
||||
|
||||
$message = 'کاربر ' . $Withdraw->customer->name . ' با شماره موبایل ' . $Withdraw->customer->mobile
|
||||
. ' حساب خود را به مقدار ' . number_format($Withdraw->cash) . ' ریال شارژ کرد. با تشکر، ' . $this->Config('name_fa');
|
||||
|
||||
@@ -238,6 +253,21 @@ class paypingController extends Controller
|
||||
'active' => true,
|
||||
], 3, false, true);
|
||||
|
||||
try {
|
||||
app(\App\Services\PargarSyncService::class)->queueWalletDocument(
|
||||
$User,
|
||||
'cash',
|
||||
(float) ($decodedResponse['data']['amount'] * 10),
|
||||
[
|
||||
'withdraw_id' => (int) $Withdraw->id,
|
||||
'note' => 'واریز درگاه',
|
||||
'source' => 'gateway',
|
||||
]
|
||||
);
|
||||
} catch (\Throwable $e) {
|
||||
report($e);
|
||||
}
|
||||
|
||||
if ($this->cfg()->getBool('payping_fin_sync_enabled', (bool) config('payment.payping_fin_sync_enabled', false))) {
|
||||
$finUrl = $this->cfg()->getString('payping_fin_url', 'https://limangold.ir/kernel/admin/fin');
|
||||
$finToken = $this->cfg()->getString('payping_fin_token', '');
|
||||
|
||||
Reference in New Issue
Block a user