IntentConfiguration class

Annotations
  • @freezed

Constructors

IntentConfiguration({required IntentMode mode, List<String>? paymentMethodTypes, @JsonKey(includeFromJson: false, includeToJson: false) ConfirmHandler? confirmHandler})
const
factory
IntentConfiguration.fromJson(Map<String, dynamic> json)
factory

Properties

confirmHandler ConfirmHandler?
Called when the customer confirms payment. Your implementation should create a payment intent or setupintent on your server and call the intent creation callback with its client secret or an error if one occurred.
no setterinherited
copyWith → $IntentConfigurationCopyWith<IntentConfiguration>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
mode IntentMode
Data related to the future payment intent
no setterinherited
paymentMethodTypes List<String>?
The list of payment method types that the customer can use in the payment sheet.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited