Docs on LEMONSQUEEZY_STORE_ID missing

Hey! I can't find docs about setting LEMONSQUEEZY_STORE_ID. It's pretty easy to find out how to do it but maybe it should be in the docs?
7 Replies
kapa.ai
kapa.ai6d ago
Hi @Joaquim. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Joaquim
JoaquimOP6d ago
Sorry if this is not the place for it
kapa.ai
kapa.ai6d ago
---------------------- You're right, and I apologize for the lack of documentation on LEMONSQUEEZY_STORE_ID. After reviewing the provided knowledge sources, I couldn't find any specific mention of this environment variable or its documentation. However, your observation is valuable, and it aligns with an ongoing issue in the Wasp project. There's an open GitHub issue titled "Document our environment variables" GitHub Issue #1894 (https://github.com/wasp-lang/wasp/issues/1894) which aims to create a comprehensive table documenting all environment variables used in Wasp, including their names, scopes, and uses. Given this information, it seems that LEMONSQUEEZY_STORE_ID is indeed missing from the current documentation. This is something that should be addressed to improve the user experience for developers working with Wasp and Lemon Squeezy integration. If you'd like to contribute to improving the documentation, you could consider: 1. Raising this specific issue in the Wasp GitHub repository. 2. Contributing to the existing issue about documenting environment variables. In the meantime, if you've figured out how to set LEMONSQUEEZY_STORE_ID, you're likely on the right track. Generally, in Wasp, environment variables can be set using .env files or through the shell, as described in the Wasp documentation on environment variables (https://wasp-lang.dev/docs/project/env-vars#defining-env-vars-in-development). Thank you for bringing this to attention. It's feedback like this that helps improve the documentation and overall user experience of Wasp. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Joaquim, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Vinny (@Wasp)
Vinny (@Wasp)5d ago
You're right, we're missing that explicit step in the docs but all the relevant info on Lemon Squeezy env vars are in the .env.server.example file:
# For testing, create a new store in test mode on https://lemonsqueezy.com
LEMONSQUEEZY_API_KEY=eyJ...
# After creating a store, you can find your store id in the store settings https://app.lemonsqueezy.com/settings/stores
LEMONSQUEEZY_STORE_ID=012345
# define your own webhook secret when creating a new webhook on https://app.lemonsqueezy.com/settings/webhooks
LEMONSQUEEZY_WEBHOOK_SECRET=my-webhook-secret
# For testing, create a new store in test mode on https://lemonsqueezy.com
LEMONSQUEEZY_API_KEY=eyJ...
# After creating a store, you can find your store id in the store settings https://app.lemonsqueezy.com/settings/stores
LEMONSQUEEZY_STORE_ID=012345
# define your own webhook secret when creating a new webhook on https://app.lemonsqueezy.com/settings/webhooks
LEMONSQUEEZY_WEBHOOK_SECRET=my-webhook-secret
Joaquim
JoaquimOP5d ago
Yeah correct, it's totally fine. Didn't know if you guys wanted that explicit or not so posted it here. I was getting a 404 during createCheckoutSession and had to debug some 5 minutes
martinsos
martinsos5d ago
Thanks for letting us know @Joaquim ! @Vinny (@Wasp) should we add it to the docs?
Vinny (@Wasp)
Vinny (@Wasp)4d ago
yep. created an issue for it! ah sorry about that. thanks for making us aware!
Want results from more Discord servers?
Add your server