SCPPaymentMethod


@interface SCPPaymentMethod : NSObject <SCPJSONDecodable>

PaymentMethod objects represent your customer’s payment instruments. They can be used with PaymentIntents to collect payments, or saved to Customer objects to store instrument details for future payments.

  • The unique identifier for the PaymentMethod

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull stripeId;
  • Time at which the object was created. Measured in seconds since the Unix epoch.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSDate *created;
  • The type of the PaymentMethod. The corresponding, similarly named property contains additional information specific to the PaymentMethod type. e.g. if the type is SCPPaymentMethodTypeCard, the card property is also populated.

    Declaration

    Objective-C

    @property (nonatomic, readonly) SCPPaymentMethodType type;
  • If this is a card PaymentMethod (ie self.type == SCPPaymentMethodTypeCard), this contains additional details.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) SCPCardDetails *card;
  • The Customer that this PaymentMethod is attached to, or nil.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *customer;
  • 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.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSDictionary<NSString *, NSString *> *_Nonnull metadata;
  • Unavailable

    You cannot directly instantiate this class.

    Declaration

    Objective-C

    - (nonnull instancetype)init;