STPCustomer

public class STPCustomer : NSObject
extension STPCustomer: STPAPIResponseDecodable

An STPCustomer represents a deserialized Customer object from the Stripe API. You shouldn’t need to instantiate an STPCustomer – you should instead use STPCustomerContext to manage retrieving and updating a customer.

Description

  • Replaces the customer’s sources and defaultSource based on whether or not they should include Apple Pay sources. More details on documentation for STPCustomerContext includeApplePaySources

    @param filteringApplePay If YES, Apple Pay sources will be ignored

    Declaration

    Swift

    @objc(updateSourcesFilteringApplePay:)
    public func updateSources(filteringApplePay: Bool)
  • Declaration

    Swift

    @objc
    public class func decodedObject(fromAPIResponse response: [AnyHashable : Any]?) -> `Self`?