Open driesvints opened 11 months ago
Are you working on this @driesvints or can I take a stab at it?
@heyjorgedev I'd rather tackle this one myself as it'll be quite a crucial part on how the package's gonna evolve. Thanks for offering though!
Could you please help with this one.
I'm not sure I understand how it works. I have a product that users purchase. At the time they do so, they might not exist in users table created by Laravel by default.
So, ideally, when I receive order_created webhook, I need to check if there is a user, and if there is - make a customer. If not, create user in advance. I'm talking about my own database, since I need to know a) if there is a user b) if they bought my product
Could you please give me a hint how to implement this: should I somehow write my own webhook?
@victor-ponamariov please create a separate issue with your question.
Create the customer before doing a checkout/subscribe action we no longer have to rely on the
billable_id
&billable_type
keys.https://docs.lemonsqueezy.com/api/customers#create-a-customer
Revert https://github.com/lmsqueezy/laravel/pull/52