Class

PKContact

Encapsulates contact information needed for billing and shipping.

Declaration

class PKContact : NSObject

Overview

Instances contain only the information needed for the given transaction. All other properties are set to nil.

Topics

Contact Information

var emailAddress: String?

The contact’s email address, or nil if the contact’s email is not needed for the transaction.

var name: PersonNameComponents?

The contact’s first and last name, or nil if the contact’s name is not needed for the transaction.

var phoneNumber: CNPhoneNumber?

The contact’s telephone number, or nil if the contact’s phone number is not needed for the transaction.

var postalAddress: CNPostalAddress?

The contact’s full postal address, or nil if the contact’s address is not needed for the transaction.

var supplementarySubLocality: String?

The contact’s sublocality, or nil if the sublocality is not needed for the transaction.

Deprecated

Relationships

Inherits From

Conforms To

See Also

Providing Known Contact Information

var billingContact: PKContact?

A prepopulated billing address.

var shippingContact: PKContact?

A prepopulated shipping address.