PaymentElementOptions constructor
const
PaymentElementOptions({
- PaymentElementLayout? layout,
- PaymentElementDefaultValues? defaultValues,
- PaymentElementBusiness? business,
- dynamic paymentMethodOrder,
- PaymentElementFields? fields,
- bool? readOnly,
- PaymentElementOptionsTerms? terms,
- PaymentElementWalletOptions? wallets,
- PaymentElementApplePayOptions? applePay,
Implementation
const factory PaymentElementOptions({
PaymentElementLayout? layout,
/// Provide initial customer information that will be displayed
/// in the Payment Element.
/// The form will render with empty fields if not provided.
PaymentElementDefaultValues? defaultValues,
/// Provide information about your business that will
/// be displayed in the Payment Element.
/// This information will be retrieved from your Stripe account
/// if not provided.
PaymentElementBusiness? business,
dynamic paymentMethodOrder,
/// By default, the Payment Element will collect all necessary details to
/// complete a payment.
///
/// For some payment methods, this means that the Payment Element will
/// collect details like name or email that you may have already collected
/// from the user.
///
/// If this is the case, you can prevent the Payment Element from collecting
/// these data by using the fields option.
///
/// If you disable the collection of a certain field with the fields option,
/// you must pass that same data to stripe.confirmPayment or the payment will
/// be rejected.
PaymentElementFields? fields,
bool? readOnly,
PaymentElementOptionsTerms? terms,
PaymentElementWalletOptions? wallets,
PaymentElementApplePayOptions? applePay,
}) = _PaymentElementOptions;