Skip to content
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

fix: validate lemonsqueezy webhook callback #380

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oskarkraemer
Copy link

Validates LemonSqueezy webhook callbacks for payments using the X-Signature header that is sent with every LS request.
It hashes the body content using the value in the "LS_WEBHOOK_SECRET" env variable (I belive you set it to the LS signature) and compars the hash with the value in the X-Signature header.

It is described here LemonSqueezy Webhooks.
Since I can't test it, please make sure it is actually working.

@benallfree
Copy link
Collaborator

Interesting! That seems pretty straightforward, I'll have to test it as you mentioned :) I think I can do that by sending a few API test requests using the LS console.

Thank you for looking into this!

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.

None yet

2 participants