Closed maartenpaauw closed 11 months ago
Example code:
return $tenant->newSubscription($plan, $priceId) ->allowPromotionCodes() ->when($trailDays, fn (SubscriptionBuilder $builder) => $builder->trialUntil(Carbon::now()->endOfDay()->addDays($trialDays))) ->collectTaxIds() ->checkout([ 'success_url' => Dashboard::getUrl(), 'cancel_url' => Dashboard::getUrl(), ]) ->redirect();
Example code: