STPCardParams
public class STPCardParams : NSObject, STPFormEncodable, NSCopying
Representation of a user’s credit card details. You can assemble these with information that your user enters and then create Stripe tokens with them using an STPAPIClient.
-
Declaration
Swift
public var additionalAPIParameters: [AnyHashable : Any]
-
The card’s number.
Declaration
Swift
@objc public var number: String?
-
The last 4 digits of the card’s number, if it’s been set, otherwise nil.
Declaration
Swift
@objc public func last4() -> String?
-
The card’s expiration month.
Declaration
Swift
@objc public var expMonth: UInt
-
The card’s expiration year.
Declaration
Swift
@objc public var expYear: UInt
-
The card’s security code, found on the back.
Declaration
Swift
@objc public var cvc: String?
-
The cardholder’s name. @note Changing this property will also changing the name of the param’s
address
property.Declaration
Swift
@objc public var name: String? { get set }
-
The cardholder’s address. @note Setting
address
to a new value will also change thename
property to be the value ofaddress.name
. However, changingaddress.name
directly will not* changename
.Declaration
Swift
@objc public var address: STPAddress { get set }
-
Three-letter ISO currency code representing the currency paid out to the bank account. This is only applicable when tokenizing debit cards to issue payouts to managed accounts. You should not set it otherwise. The card can then be used as a transfer destination for funds in this currency.
Declaration
Swift
@objc public var currency: String?
-
The first line of the cardholder’s address
Declaration
Swift
@objc public var addressLine1: String? { get set }
-
The second line of the cardholder’s address
Declaration
Swift
@objc public var addressLine2: String? { get set }
-
The city of the cardholder’s address
Declaration
Swift
@objc public var addressCity: String? { get set }
-
The state of the cardholder’s address
Declaration
Swift
@objc public var addressState: String? { get set }
-
The zip code of the cardholder’s address
Declaration
Swift
@objc public var addressZip: String? { get set }
-
The country of the cardholder’s address
Declaration
Swift
@objc public var addressCountry: String? { get set }
-
Initializes an empty STPCardParams.
Declaration
Swift
public override init()
-
Declaration
Swift
public class func rootObjectName() -> String?
-
Declaration
Swift
public class func propertyNamesToFormFieldNamesMapping() -> [String : String]