🛶 Quickly integrate your Laravel application with Kanuu in 3 simple steps.
composer require kanuu-io/kanuu-laravel
📚 Read the full documentation at docs.kanuu.io
KANUU_API_KEY="YOUR_API_KEY"
2. Add a route to your routes/web.php
that will redirect your user to Kanuu based on a unique identifier.
use Kanuu\Laravel\Facades\Kanuu;
// ...
Kanuu::redirectRoute()->name('kanuu.redirect');
<a href="{{ route('kanuu.redirect', $user) }}" class="...">
Manage your subscription
</a>
Note that your can use any identifier you want as long as it's unique throughout your application. For example, if you want to provide team-based subscription, you can use route('kanuu.redirect', $team)
or route('kanuu.redirect', $team->uuid)
.
And that's it! ✨
Kanuu's package provide a lot more for you to get started using Kanuu and Paddle. This includes:
- A
HandleWebhookController
that takes care of both handling Paddle's webhooks and verifying their signature. - A
kanuu:publish
command that provides all the boilerplate you need to get started with billing.
Full documentation available at docs.kanuu.io
The MIT License (MIT). Please see License File for more information.