Skip to content

Configure usage-based Stripe product IDs (i.e. prices) #10655

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
Tracked by #9036
jankeromnes opened this issue Jun 14, 2022 · 0 comments · Fixed by #10660
Closed
Tracked by #9036

Configure usage-based Stripe product IDs (i.e. prices) #10655

jankeromnes opened this issue Jun 14, 2022 · 0 comments · Fixed by #10660
Assignees
Labels
team: webapp Issue belongs to the WebApp team

Comments

@jankeromnes
Copy link
Contributor

Part of #9036

When creating a Stripe usage-based Subscription, we link a Stripe Customer to a Stripe Product via a "Stripe Price" (technically, a different ID depending on EUR or USD currency)

Currently, we hard-code the Stripe Price IDs in code:

// FIXME(janx): Use configmap.
const prices = {
EUR: "price_1LAE0AGadRXm50o3xjegX0Kd",
USD: "price_1LAE0AGadRXm50o3rKoktPiJ",
};

Instead, we should configure them in a server configmap (for preview envs, staging, and production).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team: webapp Issue belongs to the WebApp team
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant