PaymentElement constructor

PaymentElement({
  1. Key? key,
  2. required String clientSecret,
  3. String? customerSessionClientSecret,
  4. double? width,
  5. double? height,
  6. CardStyle? style,
  7. CardPlaceholder? placeholder,
  8. bool enablePostalCode = false,
  9. bool autofocus = false,
  10. FocusNode? focusNode,
  11. CardFocusCallback? onFocus,
  12. required CardChangedCallback onCardChanged,
  13. PaymentElementLayout layout = PaymentElementLayout.accordion,
  14. ElementAppearance? appearance,
  15. PaymentElementDefaultValues? defaultValues,
  16. PaymentElementBusiness? business,
  17. dynamic paymentMethodOrder,
  18. PaymentElementFields? fields,
  19. bool? readOnly,
  20. PaymentElementOptionsTerms? terms,
  21. PaymentElementWalletOptions? wallets,
  22. 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,
});