STPPaymentMethodAddress

@interface STPPaymentMethodAddress
    : NSObject <STPAPIResponseDecodable, STPFormEncodable>

The billing address, a property on STPPaymentMethodBillingDetails

  • City/District/Suburb/Town/Village.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *city;

    Swift

    var city: String? { get set }
  • 2-letter country code.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *country;

    Swift

    var country: String? { get set }
  • Address line 1 (Street address/PO Box/Company name).

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *line1;

    Swift

    var line1: String? { get set }
  • Address line 2 (Apartment/Suite/Unit/Building).

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *line2;

    Swift

    var line2: String? { get set }
  • ZIP or postal code.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *postalCode;

    Swift

    var postalCode: String? { get set }
  • State/County/Province/Region.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *state;

    Swift

    var state: String? { get set }
  • Convenience initializer for creating a STPPaymentMethodAddress from an STPAddress.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAddress:(nonnull STPAddress *)address;

    Swift

    init(address: STPAddress)