Filament billing provider for Laravel Cashier
liberusoftware/filament-cashier-billing-provider is a Laravel package for filament billing provider for laravel cashier.
It currently has 0 GitHub stars and 264 downloads on Packagist (latest version 1.3).
Install it with composer require liberusoftware/filament-cashier-billing-provider.
Discover more Laravel packages by liberusoftware
or browse all Laravel packages to compare alternatives.
Last updated
Integrate Laravel Cashier Stripe support into Filament's multi-tenant panels.
You can support me by buying Model States for Filament.
Install the package via composer:
composer require maartenpaauw/filament-cashier-billing-provider
Make sure your Billable model is the same as your Filament tenant model.
[!TIP] For more information configuring a
Billablemodel, refer to the official Laravel documentation.
Add plans to your cashier.php config file:
'plans' => [
'default' => [
'price_id' => ENV('CASHIER_STRIPE_SUBSCRIPTION_DEFAULT_PRICE_ID'),
'trial_days' => 14, // Optional
'allow_promotion_codes' => true, // Optional
'collect_tax_ids' => true, // Optional
'metered_price' => true, // Optional
],
],
[!CAUTION] The current implementation only supports recurring subscriptions.
Add the following code to your AdminPanelProvider (or other panel providers):
use Maartenpaauw\Filament\Cashier\Stripe\BillingProvider;
// ...
public function panel(Panel $panel): Panel
{
return $panel
// ...
->tenantBillingProvider(new BillingProvider('default'))
->requiresTenantSubscription()
// ...
}
[!NOTE] Requiring tenant subscription is optional. You can remove
->requiresTenantSubscription()if you wish.
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.