CustomerSheetResult constructor

  1. @JsonSerializable(explicitToJson: true)
const CustomerSheetResult({
  1. PaymentSheetPaymentOption? paymentOption,
  2. PaymentMethod? paymentMethod,
  3. StripeError? error,
})

Implementation

@JsonSerializable(explicitToJson: true)
const factory CustomerSheetResult({
  /// The users selected payment option, if one exists.
  PaymentSheetPaymentOption? paymentOption,

  /// The Stripe PaymentMethod associated with the paymentOption, if it exists.
  PaymentMethod? paymentMethod,

  /// The error that occurred
  StripeError? error,
}) = _CustomerSheetResult;