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

Improving billing #912

Merged
merged 26 commits into from
Mar 26, 2024
Merged

Conversation

elisalimli
Copy link
Collaborator

@elisalimli elisalimli commented Mar 25, 2024

Summary

Renames NEXT_PUBLIC_STRIPE_SECRET_KEY environment variable to STRIPE_SECRET_KEY because this key should not be exposed to the browser.

Fixes typo in api.py

Moves onboard logic to an API route.

Replacing stripe pricing table with a custom one. Now we're passing customer id to the checkout page. So the email address is read-only (this was causing issues in prod, because some users were not using the same email address that they used when they signed up to Superagent).
So, we can remove NEXT_PUBLIC_STRIPE_DARK_PRICING_TABLE_ID and NEXT_PUBLIC_STRIPE_LIGHT_PRICING_TABLE_ID

Adds ability to switch between payment plans.

Adds a check to verify stripe signature to prevent replay attacks

Depends on
#911

Test plan

  • Rename NEXT_PUBLIC_STRIPE_SECRET_KEY with STRIPE_SECRET_KEY in libs/ui/.env

https://www.loom.com/share/0cd00b713a2348028d8f89d29bc63763

Copy link

render bot commented Mar 25, 2024

@elisalimli elisalimli changed the base branch from main to chore/ui-remove-unused-deps March 25, 2024 14:04
@homanp homanp self-assigned this Mar 25, 2024
@homanp homanp added the enhancement New feature or request label Mar 25, 2024
@elisalimli elisalimli requested a review from homanp March 25, 2024 15:11
@elisalimli elisalimli merged commit 08a7a29 into chore/ui-remove-unused-deps Mar 26, 2024
6 checks passed
@elisalimli elisalimli deleted the fix/stripe_integration_bugs branch April 13, 2024 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants