PaymentElementLayout constructor
const
PaymentElementLayout({
- required PaymentElementLayoutType type,
- bool? defaultCollapsed,
- bool? radios,
- bool? spacedAccordionItems,
Implementation
const factory PaymentElementLayout({
/// Defines the layout to render the Payment Element.
required PaymentElementLayoutType type,
/// Controls if the Payment Element renders in a collapsed state
/// (where no payment method is selected by default).
/// When you leave this `undefined``,
/// Stripe renders the experience that it determines
/// will have the best conversion.
bool? defaultCollapsed,
/// Renders each Payment Method with a radio input next to its logo.
/// The radios visually indicate the current selection of the Payment
/// Element.
///
/// This property is only applicable to the accordion layout.
bool? radios,
/// When true, the Payment Methods renders as standalone buttons
/// with space in between them.
/// This property is only applicable to the accordion layout.
bool? spacedAccordionItems,
}) = _PaymentElementLayout;