lmsqueezy / laravel

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

Sync command #59

Open driesvints opened 7 months ago

driesvints commented 7 months ago

Add a sync command that will sync data for customers, subscriptions and orders. This would need to use the list api endpoints from Lemon Squeezy and then dispatch individual jobs which will fetch the object to sync them from the Lemon Squeezy API so we'd save the correct data at the point in time the job is run. Otherwise we might run into data integrity issues when webhooks come in. It's important to note to the user that they'd need a queue to run this.