Wave Stripe WebHook

Solved
tfngkmnlr ・

Dec 7th, 2023 01:52 AM

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?

tfngkmnlr ・

Dec 8th, 2023 02:36 PM

・

Best Answer

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

Report
1
bobbyiliev ・

Dec 8th, 2023 02:57 PM

Hey!

Happy to hear that you’ve got it working! And thank you for sharing the solution here with the community.

Report
1