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

Refactoring Stripe Customer Management #8

Merged
merged 15 commits into from
Apr 30, 2024
Merged

Refactoring Stripe Customer Management #8

merged 15 commits into from
Apr 30, 2024

Conversation

qianl15
Copy link
Member

@qianl15 qianl15 commented Apr 30, 2024

  • With this PR, instead of relying on Auth0 post login actions, we manage auth0 <-> Stripe customer ID mapping in our app's database through a reliable workflow. Specifically, we create a Stripe customer when a user first hits the subscribe/ endpoint, and record the user ID mapping in the accounts table.
  • No longer record plan info in the table as it is redundant.
  • Add more unit tests to show that we can test transactions individually.
  • Update staging tests to also test subscribe/ and create-customer-portal endpoints.
  • Clean up code so workflows are more readable.

@qianl15 qianl15 merged commit ffb011c into main Apr 30, 2024
1 check passed
@qianl15 qianl15 deleted the qian/refactoring branch April 30, 2024 23:10
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.

2 participants