Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Add monthly basic plan subscription #220

Open
wants to merge 40 commits into
base: chat-everywhere
Choose a base branch
from

Conversation

1orZero
Copy link
Collaborator

@1orZero 1orZero commented Jan 20, 2024

Tasks remaining:

  • Update the Stripe webhook handler.
  • Update the Stripe Payment Link.
  • Execute the new migration on Staging Supabase.
  • Execute the new migration on Production Supabase (By Jack?). @thejackwu

In this PR, I completely removed the customer.subscription.updated event handler

Why?

  • This hook is not triggered for the one-off plans.
  • For monthly plan cancellations, the subscription is already removed by the customer.subscription.deleted event at the end of the subscription.

I have also implemented a policy to restrict access to the user conversation table only to paid users (non-free plan).

Copy link

vercel bot commented Jan 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
chat-everwhere ✅ Ready (Inspect) Visit Preview Jan 27, 2024 6:04am

@1orZero 1orZero changed the title [WIP]Add monthly basic plan subscription Add monthly basic plan subscription Jan 22, 2024
@1orZero 1orZero requested a review from thejackwu January 22, 2024 05:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants