7 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
Not yet, but we have a polar.sh component that @erquhart built.
GitHub
GitHub - erquhart/convex-polar
Contribute to erquhart/convex-polar development by creating an account on GitHub.
@besimking curious what functionality you’re trying to get between lemon squeezy and your convex project
Polar's available api's are pretty similar to lemon squeezy I believe, but I haven't worked with them, just read the docs
But you should be able to get some valuable intel from the code Jamie linked
Hi @erquhart @jamwt
First of all, thank you so much for taking the time to be here—I really appreciate it!
I'm looking to sell subscriptions using Lemon Squeezy, but I'm unsure of the best practices for implementation. I understand that it's possible to create an endpoint for Lemon Squeezy to send subscription updates, but I'm not sure how to approach this in the most effective way.
I've been searching for guidance, but I haven't found any documentation or videos specifically covering integration with Convex and Lemon Squeezy. If you have any resources or advice, I’d greatly appreciate your help!
Thanks in advance!
@erquhart
By the way, do you have any documentation for your repository? I might consider replicating it to include support for Lemon Squeezy.
Documentation for the polar component repo is in the readme. The way that Lemon Squeezy would update your backend in Convex is through webhooks, so you would set up your Convex project with endpoints that Lemon Squeezy can send webhooks to. Polar component does this for Polar, but every implementation is different in terms of provider sdk's and such.
Convex HTTP Actions are how you set up public endpoints, including for webhooks: https://docs.convex.dev/functions/http-actions
LemonSqueezy Webhooks guide here: https://docs.lemonsqueezy.com/guides/developer-guide/webhooks
HTTP Actions | Convex Developer Hub
HTTP actions allow you to build an HTTP API right in Convex!
Guides: Sync With Webhooks • Lemon Squeezy
Learn how to use webhooks to automatically sync data between Lemon Squeezy and your app.
@erquhart Thanks a lot for the response. I will give it a shot