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

fix: stop creating a Stripe account during web3.storage account creation #2226

Conversation

e-schneid
Copy link
Contributor

@e-schneid e-schneid commented Feb 27, 2023

Fixes #2225

This eliminates a race condition causing the creation of multiple customers in Stripe. New customers are now treated as if they're in the free tier without actually giving them a stripe customer.

@e-schneid e-schneid requested a review from a team as a code owner February 27, 2023 20:31
@e-schneid e-schneid linked an issue Feb 27, 2023 that may be closed by this pull request
@e-schneid e-schneid force-pushed the 2225-remove-code-that-automatically-signs-up-new-user-to-free-tier branch 3 times, most recently from 96488f6 to bdb8298 Compare February 27, 2023 22:03
@e-schneid e-schneid force-pushed the 2225-remove-code-that-automatically-signs-up-new-user-to-free-tier branch from bdb8298 to 240b2fb Compare February 27, 2023 22:57
@e-schneid e-schneid merged commit 425ac5c into main Mar 10, 2023
@e-schneid e-schneid deleted the 2225-remove-code-that-automatically-signs-up-new-user-to-free-tier branch March 10, 2023 18:39
@e-schneid
Copy link
Contributor Author

This is tested in staging by creating a new account and confirming that there is no corresponding customer being create in Stripe.

For manual regression testing:

  1. Ensure that adding a payment method still works while the user has no customer in Stripe (as expected, this will create a new customer in Stripe).
  2. Check that names and emails are properly being updated in Stripe on subsequent logins to web3.storage (after adding a payment method or subscription)

e-schneid pushed a commit that referenced this pull request Mar 13, 2023
🤖 I have created a release *beep* *boop*
---


##
[7.15.2](api-v7.15.1...api-v7.15.2)
(2023-03-10)


### Bug Fixes

* stop creating a Stripe account during web3.storage account creation
([#2226](#2226))
([425ac5c](425ac5c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

remove code that automatically signs up new user to free tier
2 participants