Skip to content

Conversation

@sethconvex
Copy link
Contributor

The updateSubscriptionQuantity action was reading process.env.STRIPE_SECRET_KEY directly, which is not available in component action contexts even when set in the Convex Dashboard.

This fix:

  • Makes apiKey a required parameter in the component action
  • Updates the client method to pass this.apiKey to the action
  • Removes the process.env fallback that doesn't work in component actions

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

The updateSubscriptionQuantity action was reading process.env.STRIPE_SECRET_KEY
directly, which is not available in component action contexts even when set in
the Convex Dashboard.

This fix:
- Makes apiKey a required parameter in the component action
- Updates the client method to pass this.apiKey to the action
- Removes the process.env fallback that doesn't work in component actions
@michaelshimeles
Copy link
Collaborator

good to get merged

@michaelshimeles michaelshimeles merged commit 0e96a9c into master Dec 20, 2025
3 checks passed
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.

3 participants