STPSource

Objective-C

@interface STPSource
    : NSObject <STPAPIResponseDecodable, STPSourceProtocol, STPPaymentOption>

Swift

class STPSource : NSObject, STPAPIResponseDecodable, STPSourceProtocol, STPPaymentOption

Representation of a customer’s payment instrument created with the Stripe API. - see: https://stripe.com/docs/api#sources

Deprecated

  • Deprecated

    Metadata is no longer returned to clients using publishable keys. Retrieve them on your server using yoursecret key instead.

    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

    Objective-C

    @property (nonatomic, readonly, nullable) NSDictionary<NSString *, NSString *> *metadata;

    Swift

    var metadata: [String : String]? { get }