PHP code example of liberusoftware / filament-cashier-billing-provider
1. Go to this page and download the library: Download liberusoftware/filament-cashier-billing-provider library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
liberusoftware / filament-cashier-billing-provider example snippets
'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
],
],
use Maartenpaauw\Filament\Cashier\Stripe\BillingProvider;
// ...
public function panel(Panel $panel): Panel
{
return $panel
// ...
->tenantBillingProvider(new BillingProvider('default'))
->