PaymentElement constructor
PaymentElement({
- Key? key,
- required String clientSecret,
- String? customerSessionClientSecret,
- double? width,
- double? height,
- CardStyle? style,
- CardPlaceholder? placeholder,
- bool enablePostalCode = false,
- bool autofocus = false,
- FocusNode? focusNode,
- CardFocusCallback? onFocus,
- required CardChangedCallback onCardChanged,
- PaymentElementLayout layout = PaymentElementLayout.accordion,
- ElementAppearance? appearance,
- PaymentElementDefaultValues? defaultValues,
- PaymentElementBusiness? business,
- dynamic paymentMethodOrder,
- PaymentElementFields? fields,
- bool? readOnly,
- PaymentElementOptionsTerms? terms,
- PaymentElementWalletOptions? wallets,
- PaymentElementApplePayOptions? applePay,
Implementation
PaymentElement({
super.key,
required this.clientSecret,
this.customerSessionClientSecret,
this.width,
this.height,
this.style,
this.placeholder,
this.enablePostalCode = false,
this.autofocus = false,
this.focusNode,
this.onFocus,
required this.onCardChanged,
this.layout = PaymentElementLayout.accordion,
this.appearance,
this.defaultValues,
this.business,
this.paymentMethodOrder,
this.fields,
this.readOnly,
this.terms,
this.wallets,
this.applePay,
});