Does Wave check active plans?
Hi there, I'm investigating Wave middlewares and models and here is the question:
Does Wave check active subscription plans?
If a plan expires or the user cancelled their subscription, does Wave know that? And give the user the possibility to resubscribe?
How does it works?
Sorry I can not see that part of code.
Cheers!
Hello,
I've not looked into the code recently, but I think that this should be handled by the following route:
Endpoint: paddle/webhook
Controller: Wave\Http\Controllers\SubscriptionController@hook
So that Paddle would send post requests with payload containing specific events like successful/failed payments and etc.
Also noticed this in the official Cashier documentation here:
https://laravel.com/docs/8.x/cashier-paddle#handling-paddle-webhooks
Regards,
Bobby
Hm, I see.
So maybe we should add this to the docs. You have to setup your webhook url into paddle console (https://vendors.paddle.com/webhook-alert-test)
I saw that in SubscriptionController@hook there are allready functions to prevent failed payments and cancelled subscriptions. So I only had to add the url to my paddle console and it works (I asume).
Can you add this to the docs?
Thank you!
This is a very good point! Thanks for mentioning it.
I will try to do some testing this week and update the docs accordingly!















