referral updated

This commit is contained in:
Hritikkk9
2024-08-02 16:32:30 +05:30
parent 58f965da76
commit 66367d405a
3 changed files with 10 additions and 3 deletions

View File

@@ -241,6 +241,13 @@ class StripeWebhookController extends Controller
Log::info("Creating entry in Referral User table");
Log::info($referralUserId);
Log::info($userId);
Log::info($isCustomReferralCodeApplied);
ReferralUsers::create([
'iam_principal_xid' => $referralUserId, //Referral User Xid
@@ -265,7 +272,7 @@ class StripeWebhookController extends Controller
} catch (\Exception $e) {
Log::error("An error occurred in " . __METHOD__ . ": " . $e->getMessage());
// return response()->json(['error' => __('something_went_wrong')], 500);
Log::error('Customer Subscription Checkout session function failed: ' . $e->getMessage());
Log::error('Customer Subscription Checkout session function failed: ' . $e->getMessage() . $e->getLine());
DB::rollBack();