Wave Stripe WebHook
Hello,
I am trying to develop a project together with wave and I have completed the stripe integration.
I created a webhook and gave the relevant authorisations, but the role is defined depending on the user on wave. If a package change is made, no change can be made on it. Although I added meta name to all products while trying this, the name field in my subscriptions table in my database is not updated in any way. Does anyone have any idea about the subject?
i changed this line in cashier WebHookController
$subscription->name = $subscription->name ?? $data['metadata']['name'] ?? $this->newSubscriptionName($payload);
to:
$subscription->name = $data['items']['data'][0]['price']['metadata']['name'] ?? $this->newSubscriptionName($payload);
and now working, thanks
Hey!
Happy to hear that you’ve got it working! And thank you for sharing the solution here with the community.