Source class final
Source
`Source` objects allow you to accept a variety of payment methods. They represent a customer's payment instrument, and can be used with the Stripe API just like a `Card` object: once chargeable, they can be charged, or can be attached to customers. Stripe doesn't recommend using the deprecated [Sources API](https://stripe.com/docs/api/sources). We recommend that you adopt the [PaymentMethods API](https://stripe.com/docs/api/payment_methods). This newer API provides access to our latest features and payment method types. Related guides: [Sources API](https://stripe.com/docs/sources) and [Sources & Customers](https://stripe.com/docs/sources/customers).
Constructors
-
Source({SourceTypeAchCreditTransfer? achCreditTransfer, SourceTypeAchDebit? achDebit, SourceTypeAcssDebit? acssDebit, SourceTypeAlipay? alipay, int? amount, SourceTypeAuBecsDebit? auBecsDebit, SourceTypeBancontact? bancontact, SourceTypeCard? card, SourceTypeCardPresent? cardPresent, required String clientSecret, SourceCodeVerificationFlow? codeVerification, required DateTime created, String? currency, String? customer, SourceTypeEps? eps, required String flow, SourceTypeGiropay? giropay, required String id, SourceTypeIdeal? ideal, SourceTypeKlarna? klarna, required bool livemode, Map<
String, String> ? metadata, SourceTypeMultibanco? multibanco, SourceOwner? owner, SourceTypeP24? p24, SourceReceiverFlow? receiver, SourceRedirectFlow? redirect, SourceTypeSepaCreditTransfer? sepaCreditTransfer, SourceTypeSepaDebit? sepaDebit, SourceTypeSofort? sofort, SourceOrder? sourceOrder, String? statementDescriptor, required String status, SourceTypeThreeDSecure? threeDSecure, required SourceType type, String? usage, SourceTypeWechat? wechat}) -
Source
const
- Source.fromJson(Object? json)
-
factory
Properties
- achCreditTransfer → SourceTypeAchCreditTransfer?
-
final
- achDebit → SourceTypeAchDebit?
-
final
- acssDebit → SourceTypeAcssDebit?
-
final
- alipay → SourceTypeAlipay?
-
final
- amount → int?
-
final
- auBecsDebit → SourceTypeAuBecsDebit?
-
final
- bancontact → SourceTypeBancontact?
-
final
- card → SourceTypeCard?
-
final
- cardPresent → SourceTypeCardPresent?
-
final
- clientSecret → String
-
final
- codeVerification → SourceCodeVerificationFlow?
-
final
- created → DateTime
-
final
- currency → String?
-
final
- customer → String?
-
final
- eps → SourceTypeEps?
-
final
- flow → String
-
final
- giropay → SourceTypeGiropay?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The ID of the PaymentIntentSource.
final
- ideal → SourceTypeIdeal?
-
final
- klarna → SourceTypeKlarna?
-
final
- livemode → bool
-
final
-
metadata
→ Map<
String, String> ? -
final
- multibanco → SourceTypeMultibanco?
-
final
- object → String
-
final
- owner → SourceOwner?
-
Information about the owner of the payment instrument that may be used or required by particular source types.
final
- p24 → SourceTypeP24?
-
final
- receiver → SourceReceiverFlow?
-
final
- redirect → SourceRedirectFlow?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sepaCreditTransfer → SourceTypeSepaCreditTransfer?
-
final
- sepaDebit → SourceTypeSepaDebit?
-
final
- sofort → SourceTypeSofort?
-
final
- sourceOrder → SourceOrder?
-
final
- statementDescriptor → String?
-
final
- status → String
-
final
- threeDSecure → SourceTypeThreeDSecure?
-
final
- type → SourceType
-
final
- usage → String?
-
final
- wechat → SourceTypeWechat?
-
final
Methods
-
encodeWith<
V> (Encoder< V> encoder) → V -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited