fix some handling

This commit is contained in:
2026-07-08 11:09:11 +03:30
parent a04dc6e57d
commit 130fadc193
4 changed files with 244 additions and 24 deletions
@@ -222,6 +222,14 @@ class SingleOrderController extends Controller
$response['bonus_gift'] = $this->bonusGift($customer, $referrer);
}
}
if ($customer && isset($data['order'])) {
try {
app(ReferralGiftService::class)->tryGiveOnFirstOrder($customer);
} catch (\Throwable $e) {
report($e);
}
}
if (isset($data['order'])) {
try {
$response['Notifications'] = $this->sendTransactionNotifications($data, $transactionType);