BillingPortalSession constructor

const BillingPortalSession({
  1. required BillingPortalConfigurationOrId configuration,
  2. required DateTime created,
  3. required String customer,
  4. BillingPortalSessionFlow? flow,
  5. required String id,
  6. required bool livemode,
  7. BillingPortalSessionLocale? locale,
  8. String? onBehalfOf,
  9. String? returnUrl,
  10. required String url,
})

PortalSession

The Billing customer portal is a Stripe-hosted UI for subscription and billing management. A portal configuration describes the functionality and features that you want to provide to your customers through the portal. A portal session describes the instantiation of the customer portal for a particular customer. By visiting the session's URL, the customer can manage their subscriptions and billing details. For security reasons, sessions are short-lived and will expire if the customer does not visit the URL. Create sessions on-demand when customers intend to manage their subscriptions and billing details. Learn more in the [integration guide](https://stripe.com/docs/billing/subscriptions/integrating-customer-portal).

Implementation

const BillingPortalSession({
  required this.configuration,
  required this.created,
  required this.customer,
  this.flow,
  required this.id,
  required this.livemode,
  this.locale,
  this.onBehalfOf,
  this.returnUrl,
  required this.url,
});