STPPushProvisioningDetailsParams
Objective-C
@interface STPPushProvisioningDetailsParams : NSObject
Swift
class STPPushProvisioningDetailsParams : NSObject
A helper class for turning the raw certificate array, nonce, and nonce signature emitted by PKAddPaymentPassViewController into a format that is understandable by the Stripe API. If you are using STPPushProvisioningContext to implement your integration, you do not need to use this class.
-
The Stripe ID of the Issuing card object to retrieve details for.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull cardId;
Swift
var cardId: String { get }
-
An array of certificates that should be used to encrypt the card details.
Declaration
Objective-C
@property (nonatomic, readonly) NSArray<NSData *> *_Nonnull certificates;
Swift
var certificates: [Data] { get }
-
A nonce that should be used during the encryption of the card details.
Declaration
Objective-C
@property (nonatomic, readonly) NSData *_Nonnull nonce;
Swift
var nonce: Data { get }
-
A nonce signature that should be used during the encryption of the card details.
Declaration
Objective-C
@property (nonatomic, readonly) NSData *_Nonnull nonceSignature;
Swift
var nonceSignature: Data { get }
-
Implemented for convenience - the Stripe API expects the certificate chain as an array of base64-encoded strings.
Declaration
Objective-C
@property (nonatomic, readonly) NSArray<NSString *> *_Nonnull certificatesBase64;
Swift
var certificatesBase64: [String] { get }
-
Implemented for convenience - the Stripe API expects the nonce as a hex-encoded string.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull nonceHex;
Swift
var nonceHex: String { get }
-
Implemented for convenience - the Stripe API expects the nonce signature as a hex-encoded string.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull nonceSignatureHex;
Swift
var nonceSignatureHex: String { get }
-
Instantiates a new params object with the provided attributes.
Declaration
Objective-C
+ (nonnull instancetype)paramsWithCardId:(nonnull NSString *)cardId certificates: (nonnull NSArray<NSData *> *)certificates nonce:(nonnull NSData *)nonce nonceSignature:(nonnull NSData *)nonceSignature;
Swift
convenience init(cardId: String, certificates: [Data], nonce: Data, nonceSignature: Data)