Source
Model for a Sources API object.
Types
Information related to the code verification flow. Present if the source is authenticated by a verification code (flow is Flow.CodeVerification).
The authentication flow
of the source.
Information about the owner of the payment instrument that may be used or required by particular source types.
Information related to the receiver flow. Present if flow is Source.Flow.Receiver.
Information related to the redirect flow. Present if the source is authenticated by a redirect (flow is Flow.Redirect).
The status of the source, one of canceled
, chargeable
, consumed
, failed
, or pending
. Only chargeable
sources can be used to create a charge.
Either reusable
or single_use
. Whether this source should be reusable or not. Some source types may or may not be reusable by construction, while others may leave the option at creation. If an incompatible value is passed, an error will be returned.
Functions
Properties
Three-letter ISO code for the currency associated with the source. This is the currency for which the source will be chargeable once ready. Required for single_use
sources.
Information related to the receiver flow. Present if the source is a receiver (flow is Flow.Receiver).
Information related to the redirect flow. Present if the source is authenticated by a redirect (flow is Flow.REDIRECT).
The SourceType of this Source, as one of the enumerated values. If a custom source type has been created, this returns SourceType.UNKNOWN. To get the raw value of an SourceType.UNKNOWN type, use typeRaw.
Gets the type of this source as a String. If it is a known type, this will return a string equal to the SourceType returned from type. This method is not restricted to known types