STPSource
public class STPSource : NSObject, STPAPIResponseDecodable, STPSourceProtocol, STPPaymentOption
Representation of a customer’s payment instrument created with the Stripe API. - seealso: https://stripe.com/docs/api#sources
-
The amount associated with the source.
Declaration
Swift
@objc public private(set) var amount: NSNumber? { get }
-
The client secret of the source. Used for client-side fetching of a source using a publishable key.
Declaration
Swift
@objc public private(set) var clientSecret: String? { get }
-
When the source was created.
Declaration
Swift
@objc public private(set) var created: Date? { get }
-
The currency associated with the source.
Declaration
Swift
@objc public private(set) var currency: String? { get }
-
The authentication flow of the source.
Declaration
Swift
@objc public private(set) var flow: STPSourceFlow { get }
-
Whether or not this source was created in livemode.
Declaration
Swift
@objc public private(set) var livemode: Bool { get }
-
Information about the owner of the payment instrument.
Declaration
Swift
@objc public private(set) var owner: STPSourceOwner? { get }
-
Information related to the receiver flow. Present if the source’s flow is receiver.
Declaration
Swift
@objc public private(set) var receiver: STPSourceReceiver? { get }
-
Information related to the redirect flow. Present if the source’s flow is redirect.
Declaration
Swift
@objc public private(set) var redirect: STPSourceRedirect? { get }
-
The status of the source.
Declaration
Swift
@objc public private(set) var status: STPSourceStatus { get }
-
The type of the source.
Declaration
Swift
@objc public private(set) var type: STPSourceType { get }
-
Whether this source should be reusable or not.
Declaration
Swift
@objc public private(set) var usage: STPSourceUsage { get }
-
Information related to the verification flow. Present if the source’s flow is verification.
Declaration
Swift
@objc public private(set) var verification: STPSourceVerification? { get }
-
Information about the source specific to its type
Declaration
Swift
@objc public private(set) var details: [AnyHashable : Any]? { get }
-
If this is a card source, this property provides typed access to the contents of the
details
dictionary.Declaration
Swift
@objc public private(set) var cardDetails: STPSourceCardDetails? { get }
-
If this is a Klarna source, this property provides typed access to the contents of the
details
dictionary.Declaration
Swift
@objc public private(set) var klarnaDetails: STPSourceKlarnaDetails? { get }
-
If this is a SEPA Debit source, this property provides typed access to the contents of the
details
dictionary.Declaration
Swift
@objc public private(set) var sepaDebitDetails: STPSourceSEPADebitDetails? { get }
-
If this is a WeChat Pay source, this property provides typed access to the contents of the
details
dictionary.Declaration
Swift
@objc public private(set) var weChatPayDetails: STPSourceWeChatPayDetails? { get }
-
A set of key/value pairs associated with the source object. @deprecated Metadata is no longer returned to clients using publishable keys. Retrieve them on your server using yoursecret key instead.
Declaration
Swift
@available(*, deprecated, message: "Metadata is no longer returned to clients using publishable keys. Retrieve them on your server using yoursecret key instead.") @objc public private(set) var metadata: [String : String]? { get }
-
Declaration
Swift
@objc public var stripeID: String
-
Declaration
Swift
@objc private(set) public var allResponseFields: [AnyHashable : Any] { get }
-
Declaration
Swift
@objc public class func decodedObject(fromAPIResponse response: [AnyHashable : Any]?) -> `Self`?
-
Declaration
Swift
@objc public var image: UIImage { get }
-
Declaration
Swift
@objc public var templateImage: UIImage { get }
-
Declaration
Swift
@objc public var label: String { get }
-
Declaration
Swift
@objc public var isReusable: Bool { get }