STPPaymentIntentShippingDetailsAddressParams

Objective-C

@interface STPPaymentIntentShippingDetailsAddressParams
    : NSObject <NSCopying, STPFormEncodable>

Swift

class STPPaymentIntentShippingDetailsAddressParams : NSObject, NSCopying, STPFormEncodable

Shipping address for a PaymentIntent’s shipping details.

  • City/District/Suburb/Town/Village.

    Declaration

    Objective-C

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

    Swift

    var city: String? { get set }
  • Two-letter country code (ISO 3166-1 alpha-2).

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *_Nonnull line1;

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

    var state: String? { get set }
  • Initialize an STPPaymentIntentShippingDetailsAddressParams instance with required properties.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithLine1:(nonnull NSString *)line1;

    Swift

    init(line1: String)
  • Unavailable

    Use initWithLine1: instead.

    Declaration

    Objective-C

    - (nonnull instancetype)init;