AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(backend): handle customer.subscription.created webhook event
Zamil Majdy0d89f7bb33c6
diff --git a/autogpt_platform/backend/backend/api/features/v1.py b/autogpt_platform/backend/backend/api/features/v1.pyindex 93050e14c1..c263cb3fc8 100644--- a/autogpt_platform/backend/backend/api/features/v1.py+++ b/autogpt_platform/backend/backend/api/features/v1.py@@ -802,6 +802,7 @@ async def stripe_webhook(request: Request):await UserCredit().fulfill_checkout(session_id=event["data"]["object"]["id"])if event["type"] in (+ "customer.subscription.created","customer.subscription.updated","customer.subscription.deleted",):