PaymentElement constructor

PaymentElement({
  1. Key? key,
  2. required String clientSecret,
  3. double? width,
  4. double? height,
  5. CardStyle? style,
  6. CardPlaceholder? placeholder,
  7. bool enablePostalCode = false,
  8. bool autofocus = false,
  9. FocusNode? focusNode,
  10. CardFocusCallback? onFocus,
  11. required CardChangedCallback onCardChanged,
  12. PaymentElementLayout layout = PaymentElementLayout.accordion,
  13. 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,
});