ConfirmCardSetupData constructor

const ConfirmCardSetupData({
  1. @paymentMethodDetailJsonKey CardPaymentMethodDetails? paymentMethod,
  2. @JsonKey(name: "return_url") String? returnUrl,
})

Implementation

const factory ConfirmCardSetupData({
  /// 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 CardPaymentMethodDetails? paymentMethod,

  /// If you are handling next actions yourself, pass in a return_url.
  /// If the subsequent action is redirect_to_url,
  /// this URL will be used on the return path for the redirect.
  @JsonKey(name: "return_url") String? returnUrl,
}) = _ConfirmCardSetupData;