# 5. Listen to Paddle's webhooks

Since Kanuu is using your own Paddle's account under the hood, you will need to listen to subscription changes from Paddle directly using webhooks.

Using Laravel?

If you application is built on Laravel, Kanuu provides a HandlePaddleWebhook controller that takes care of everything for you including verifying the webhook's signature.

Follow these steps to install the package and see what else it can do for you.

If you don't have webhooks setup already, go to your Paddle's account under "Developer Tools > Alerts / Webhooks" and add a webhook URL to your own application. Paddle will send a POST request to that URL everytime an event you've subscribed for happened.

This means, you need to make sure the 3 subscription events: subscription_created, subscription_updated and subscription_cancelled are selected on the same page below.

Paddle's screenshot of the "Alerts and Webhooks" page.

You can now implement that POST endpoint by following Paddle's documentation.

Congratulations, you're all set! 🎉

This is what we've done:

  • Your application now has a "Manage your subscription" button that redirects your customers to Kanuu securely.
  • When your customers interact with Kanuu's UI, they are using Paddle's modals and therefore Paddle is notified of any changes.
  • Your are listening to Paddle's changes and persisting any subscription changes accordingly to know if a customer is allowed or not to access your application.
Last Updated: 11/28/2020, 4:38:40 PM