Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stripe Cancel + UI #1010

Merged
merged 121 commits into from
Aug 2, 2024
Merged

Stripe Cancel + UI #1010

merged 121 commits into from
Aug 2, 2024

Conversation

supraja-968
Copy link
Collaborator

@supraja-968 supraja-968 commented Jul 31, 2024

What type of PR is this?

  • 🎮 Feature

Description

This PR introduces stripe cancellation feature, with 2 UI pages: /subscribe - if you are new and yet to subscribe, /subscription/manage for when you are subscribed and want to check your usage, edit payment method, cancel subscription, and review your subscribed plan.

Note to dev: In addition to this, the price ID is being updated in the backend env variables and secrets. Now the price (in test, yet to be changed in prod) is 5$ flat fee + 0.01$ overage. Only 2 tiers, as opposed to the current payment method set in prod (with 3 tiers). This will be updated in prod as well.

/subscribe page:

image

/subscription/manage page:

Scenario 1: when you are subscribed and the plan is set to auto renew:
image

Scenario 2: when you have canceled your plan:
image

Menu:
image

image

Related Tickets & Documents

Reference as needed.

Steps to Test

Good to note/test:

  1. the subtext under your plan, renewal information and the buttons in the billing & payment box change dynamically between subscribed (set to auto renew) and canceled states.
  2. the menu shows 'Subscribe' vs 'Manage Subscription' based on the subscription status.
  3. if you navigate manually to the /subscribe page when you are a subscriber, it redirects to the /subscription/manage page and vice versa.
  4. After checkout, landing page is now /subscription/manage page instead of /checkout/success.
  5. You will now be redirected from the experiment submission page to the /subscribe page, instead of direct stripe checkout. This also means you can subscribe at any point manually by navigating to /subscribe, not necessarily only when you hit the threshold and are redirected from the experiment submission.

@supraja-968 supraja-968 merged commit b9a5b19 into main Aug 2, 2024
17 checks passed
@supraja-968 supraja-968 deleted the stripe_cancel branch August 2, 2024 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants