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

Deprecated

  • 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 }

STPAPIResponseDecodable

STPPaymentOption