Skip to content

Store Stripe Customer ID #13935

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

Closed
easyCZ opened this issue Oct 18, 2022 · 3 comments
Closed

Store Stripe Customer ID #13935

easyCZ opened this issue Oct 18, 2022 · 3 comments
Assignees

Comments

@easyCZ
Copy link
Member

easyCZ commented Oct 18, 2022

We actually need to store the Stripe Customer ID to avoid eventual consistency on Stripe Search API.

  • Store Stripe Customer ID in the DB
  • Populate the DB when creating Customers
  • Make it possible for the StripeCustomerID to change for a given Attribution, as a new customer is needed to enable currency switch

This issue blocks #13201

@easyCZ
Copy link
Member Author

easyCZ commented Oct 18, 2022

In the first phase, we'll introduce the DB schema and the DB model, and we'll populate it during the Customer Search (use it as a cache). In the subsequent phase, we'll also move the CreateStripeCustomer call over to usage and store it in the DB directly then.

@easyCZ
Copy link
Member Author

easyCZ commented Oct 20, 2022

This is now running behind a feature flag in production. We'll continue to monitor for the next week and if all looks good, we can remove the feature flag. Tracking flag removal in #14039

@easyCZ
Copy link
Member Author

easyCZ commented Oct 21, 2022

Validation so far looks great. Closing this issue.

@easyCZ easyCZ moved this from In Validation to Done in 🍎 WebApp Team Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

1 participant