Stripe Billing Portal
The Stripe billing portal lets members manage subscriptions, payment methods, and invoices through Stripe’s hosted UI. Use this page if you want a self-serve billing area for Stripe customers. This endpoint only works when Stripe is the active provider.
Open the portal
<form method="post" action="<?= site()->url() ?>/klub/portal">
<input type="hidden" name="token" value="<?= csrf() ?>">
<input type="hidden" name="redirect" value="<?= url('account') ?>">
<button type="submit">Manage billing</button>
</form>
Klub will redirect the member to Stripe’s portal and flush cached subscription actions and gates after returning.
For other providers, check Providers for portal support.