PaymentIntent class

A payment intent represents the interaction between the user and the payment form.

For more detailed info see: https://stripe.com/docs/payments/payment-intents.

Annotations
  • @freezed

Constructors

PaymentIntent({required String id, required num amount, required String created, required String currency, required PaymentIntentsStatus status, required String clientSecret, required bool livemode, required CaptureMethod captureMethod, required ConfirmationMethod confirmationMethod, String? paymentMethodId, String? description, String? receiptEmail, String? canceledAt, NextAction? nextAction, ShippingDetails? shipping, MandateData? mandateData, String? latestCharge})
const
factory
PaymentIntent.fromJson(Map<String, dynamic> json)
factory

Properties

amount num
Amount that will be collected in the payment intent.
no setterinherited
canceledAt String?
Timestamp since epoch when the intent is cancelled.
no setterinherited
captureMethod CaptureMethod
How the funds will be caputure from the customer's account.
no setterinherited
clientSecret String
The client is secret is used for handling the payment from the Client side.
no setterinherited
confirmationMethod ConfirmationMethod
Method of how the payment will be confirmed.
no setterinherited
copyWith → $PaymentIntentCopyWith<PaymentIntent>
no setterinherited
created String
Timestamp since epoch that represents the time the intent is created.
no setterinherited
currency String
The three letter ISO 4217 code for the currency.
no setterinherited
description String?
Localized description that provides additional context to users.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier.
no setterinherited
latestCharge String?
The latest charge created by this payment intent.
no setterinherited
livemode bool
Determines whether the intent is in live mode or in test mode.
no setterinherited
mandateData MandateData?
Mandata data for this paymentintent.
no setterinherited
nextAction NextAction?
Additional action that needs to be taken in order to complete a payment using the provided resource.
no setterinherited
paymentMethodId String?
Id of the payment method used in this intent.
no setterinherited
receiptEmail String?
Email address where the receipt will be send to.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shipping ShippingDetails?
Shipping information of the payment intent.
no setterinherited
status PaymentIntentsStatus
Current status of the intent.
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