ConfirmSepaDebitPaymentData constructor

const ConfirmSepaDebitPaymentData({
  1. @paymentMethodDetailJsonKey SepaDebitPaymentMethodDetails? paymentMethod,
  2. @JsonKey(name: "setup_future_usage") PaymentIntentSetupFutureUsage? setupFutureUsage,
})

Implementation

const factory ConfirmSepaDebitPaymentData({
  /// Either the id of an existing PaymentMethod, or an object containing
  /// data to create a PaymentMethod with.
  /// See the use case sections below for details.
  @paymentMethodDetailJsonKey SepaDebitPaymentMethodDetails? paymentMethod,

  /// To set up the SEPA Direct Debit account for reuse, set this parameter
  /// to off_session. SEPA Direct Debit only accepts an off_session value
  /// for this parameter. If a customer is provided on this PaymentIntent,
  /// the PaymentMethod will be attached to the customer when the
  /// PaymentIntent transitions to processing.
  @JsonKey(name: "setup_future_usage")
  PaymentIntentSetupFutureUsage? setupFutureUsage,
}) = _ConfirmSepaDebitPaymentData;