fix cleck sdk

This commit is contained in:
saidsurucu
2025-06-29 20:52:52 +03:00
parent 81f5f49b8a
commit dfb703d7a5
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ production = [
"uvicorn[standard]>=0.30.0", "uvicorn[standard]>=0.30.0",
] ]
saas = [ saas = [
"clerk-python-sdk>=1.0.0a4", "clerk-backend-api>=1.0.0",
"stripe>=9.1.0", "stripe>=9.1.0",
] ]
+2 -2
View File
@@ -1,10 +1,10 @@
import os, stripe import os, stripe
from clerk import ClerkClient # Clerk backend SDK from clerk_backend_api import Clerk # Clerk backend SDK
from fastapi import APIRouter, Request, HTTPException from fastapi import APIRouter, Request, HTTPException
router = APIRouter() router = APIRouter()
stripe.api_key = os.getenv("STRIPE_SECRET") stripe.api_key = os.getenv("STRIPE_SECRET")
clerk = ClerkClient(secret_key=os.getenv("CLERK_SECRET_KEY")) clerk = Clerk(bearer_auth=os.getenv("CLERK_SECRET_KEY"))
@router.post("/stripe/webhook") @router.post("/stripe/webhook")
async def stripe_hook(req: Request): async def stripe_hook(req: Request):