STPPushProvisioningDetailsParams

@interface 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 (readonly, nonatomic) 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 (readonly, nonatomic) 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 (readonly, nonatomic) 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 (readonly, nonatomic) 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 (readonly, nonatomic) 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 (readonly, nonatomic) 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 (readonly, nonatomic) 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)