STPUserInformation
@interface STPUserInformation : NSObject <NSCopying>
You can use this class to specify information that you’ve already collected
from your user. You can then set the prefilledInformation
property on
STPPaymentContext
, STPAddCardViewController
, etc and it will pre-fill
this information whenever possible.
-
The user’s billing address. When set, the add card form will be filled with this address. The user will also have the option to fill their shipping address using this address.
Declaration
Objective-C
@property (nonatomic, strong, readwrite, nullable) STPAddress *billingAddress;
Swift
var billingAddress: STPAddress? { get set }
-
The user’s shipping address. When set, the shipping address form will be filled with this address. The user will also have the option to fill their billing address using this address.
Declaration
Objective-C
@property (nonatomic, strong, readwrite, nullable) STPAddress *shippingAddress;
Swift
var shippingAddress: STPAddress? { get set }