fix bug of pargar
This commit is contained in:
@@ -142,6 +142,21 @@ class GiftCardController extends Controller
|
||||
'withdraw_id' => $Withdraw->id,
|
||||
'active' => true
|
||||
], 3, false, true);
|
||||
|
||||
try {
|
||||
app(\App\Services\PargarSyncService::class)->queueWalletDocument(
|
||||
$user,
|
||||
'cash',
|
||||
(float) $giftcode->amount,
|
||||
[
|
||||
'withdraw_id' => $Withdraw->id,
|
||||
'note' => 'کارت هدیه',
|
||||
'source' => 'gift_card',
|
||||
]
|
||||
);
|
||||
} catch (\Throwable $e) {
|
||||
report($e);
|
||||
}
|
||||
}
|
||||
|
||||
//set text for sms to customer
|
||||
|
||||
Reference in New Issue
Block a user