STPUserInformation
public class 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. @note Set this using
setBillingAddressWithBillingDetails:
to use the billing details from anSTPPaymentMethod
orSTPPaymentMethodParams
instance.Declaration
Swift
@objc public var billingAddress: STPAddress?
-
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
Swift
@objc public var shippingAddress: STPAddress?
-
A convenience method to populate
billingAddress
with a PaymentMethod’s billing details. @note Calling this overwrites the value ofbillingAddress
.Declaration
Swift
@objc(setBillingAddressWithBillingDetails:) public func setBillingAddress(with billingDetails: STPPaymentMethodBillingDetails)