lmsqueezy / laravel

A package to easily integrate your Laravel application with Lemon Squeezy.
https://lemonsqueezy.com
MIT License
468 stars 47 forks source link

artisan lmsqueezy:listen #54

Closed DanielHudson closed 6 months ago

DanielHudson commented 8 months ago

If you plan to use Ngrok or Expose for handling incoming webhooks, consider utilizing the artisan lmsqueezy:listen command. This command not only streamlines the setup of a webhook through the Lemon Squeezy API but also ensures automatic removal of the webhook when you exit the command.

Moreover, in case you encounter issues with webhook cleanup, you can always resort to the --cleanup option to remove any lingering webhooks associated with the same domains configured in Ngrok or Expose.

driesvints commented 7 months ago

I worked on this a bit over the weekend but need to do some more testing/tweaking before I can merge this. Thanks! And sorry for the delay.

DanielHudson commented 7 months ago

And sorry for the delay.

Ha! No problem - I wasn't even expecting it to get merged, it was really just an exploration of an idea, but I watched the wip over the weekend with interest though. Thanks for considering it 👍

driesvints commented 6 months ago

Thanks a bunch for this one. This will make getting started with webhooks so much easier.