STPPaymentMethod

Objective-C

@interface STPPaymentMethod
    : NSObject <STPAPIResponseDecodable, STPPaymentOption>

Swift

class STPPaymentMethod : NSObject, STPAPIResponseDecodable, STPPaymentOption

PaymentMethod objects represent your customer’s payment instruments. They can be used with PaymentIntents to collect payments.

Deprecated

  • Deprecated

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

    Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

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