PaymentElement constructor
PaymentElement({
- Key? key,
- required String clientSecret,
- 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,
Implementation
PaymentElement({
super.key,
required this.clientSecret,
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,
});