IntentMode.paymentMode constructor

  1. @JsonSerializable(explicitToJson: true, includeIfNull: false)
const IntentMode.paymentMode({
  1. required String currencyCode,
  2. required int amount,
  3. IntentFutureUsage? setupFutureUsage,
  4. CaptureMethod? captureMethod,
})

Implementation

@JsonSerializable(explicitToJson: true, includeIfNull: false)
const factory IntentMode.paymentMode({
  required String currencyCode,
  required int amount,

  /// Data related to the future payment intent
  IntentFutureUsage? setupFutureUsage,

  /// Capture method for the future payment intent
  CaptureMethod? captureMethod,
}) = _PaymentMode;