Closed bluzeey closed 4 months ago
This shouldn't be possible. The customer is always created before the subscription is made. Maybe you need to refresh the user model right before the $checkout = $user->subscribe
call? In any case this is something for a support channel:
Apologies, for dragging conversation @driesvints . I tried the refresh on the user model as well. But second i was thinking if we could pass the user attributes in the custom data with checkout , so i can access them in the webhook , but that didn't work as well
Cashier Paddle Version
2.4
Laravel Version
11.2.0
PHP Version
8.2
Database Driver & Version
My SQL 8.0 for MacOS ( Homebrew)
Description
So this is my checkout function using paddle.
Once subscription is done. Here are the images for current customers I have and what i get from webhooks. Getting customer id "customer_id":"ctm_01j1f4eqj4mv97kgsdpb0w2836".
I get back events through webhook, but they have different customer id , then the user model customer.
Steps To Reproduce
To recreate the same, we use the checkout function and link it to a paddle store with webhook.