MppCardDataParameters Class Reference
Inherits from | NSObject |
---|---|
Declared in | MppCardDataParameters.h MppCardDataParameters.m |
Other Methods
+ cardDataParametersWithCardId:cardSecret:
Create card data parameters with card secret.
+ (instancetype)cardDataParametersWithCardId:(NSString *_Nonnull)cardId cardSecret:(NSString *_Nonnull)cardSecret
Parameters
cardId |
Contains Card ID selected by the Issuer, which is later used by the WSP to send to the Issuer for validation. Max length 64. |
---|---|
cardSecret |
Contains secret value generated by the Issuer, which is later used to the WSP to exchange it versus real card data from the Issuer. Max length 64. |
Return Value
MppCardDataParameters object instance.
Discussion
Create card data parameters with card secret.
Declared In
MppCardDataParameters.h
+ cardDataParametersWithEncryptedCardData:publicKeyFingerprint:encryptedKey:initialVector:
Create card data parameters with encrypted PAN data.
+ (instancetype)cardDataParametersWithEncryptedCardData:(NSString *_Nonnull)encryptedCardData publicKeyFingerprint:(NSString *_Nonnull)publicKeyFingerprint encryptedKey:(NSString *_Nonnull)encryptedKey initialVector:(NSString *_Nonnull)initialVector
Parameters
encryptedCardData |
Encrypted card data. |
---|---|
publicKeyFingerprint |
Public Key Fingerprint. Used to recognise the key to be used for AES key decryption. |
encryptedKey |
Encrypted AES key used for encrypted card data. |
initialVector |
Initial Vector used for encrypted card data. |
Return Value
MppCardDataParameters object instance.
Discussion
Create card data parameters with encrypted PAN data.
Declared In
MppCardDataParameters.h
– isValid
Verify if card data parameters are valid.
- (BOOL)isValid
Return Value
Bool value if card data parameters are valid.
Discussion
Verify if card data parameters are valid.
Declared In
MppCardDataParameters.h
– validate
Verify if card data parameters are valid.
- (NSError *)validate
Return Value
nil
if card data parameters are valid, NSError*
otherwise.
Discussion
Verify if card data parameters are valid.
Declared In
MppCardDataParameters.h
MppCardDataParameters properties
type
Get Tokenization Receipt parameter type.
@property (nonatomic, assign, readonly) CardDataType type
Discussion
Get Tokenization Receipt parameter type.
Declared In
MppCardDataParameters.h
Properties for card secret
cardId
Contains Card ID selected by the Issuer, which is later used by the WSP to send to the Issuer for validation. Max length 64.
@property (nonatomic, copy, readonly, nullable) NSString *cardId
Return Value
The card id.
Discussion
Contains Card ID selected by the Issuer, which is later used by the WSP to send to the Issuer for validation. Max length 64.
Declared In
MppCardDataParameters.h
cardSecret
Contains secret value generated by the Issuer, which is later used to the WSP to exchange it versus real card data from the Issuer. Max length 64.
@property (nonatomic, copy, readonly, nullable) NSString *cardSecret
Return Value
The card secret.
Discussion
Contains secret value generated by the Issuer, which is later used to the WSP to exchange it versus real card data from the Issuer. Max length 64.
Declared In
MppCardDataParameters.h
Properties for encrypted PAN
encryptedCardData
Encrypted card data
@property (nonatomic, copy, readonly, nullable) NSString *encryptedCardData
Return Value
Encrypted card data.
Discussion
Encrypted card data
Declared In
MppCardDataParameters.h
publicKeyFingerprint
Public Key Fingerprint. Used to recognise the key to be used for AES key decryption.
@property (nonatomic, copy, readonly, nullable) NSString *publicKeyFingerprint
Return Value
Public Key Fingerprint.
Discussion
Public Key Fingerprint. Used to recognise the key to be used for AES key decryption.
Declared In
MppCardDataParameters.h
encryptedKey
Encrypted AES key used for encrypted card data.
@property (nonatomic, copy, readonly, nullable) NSString *encryptedKey
Return Value
Encrypted AES key.
Discussion
Encrypted AES key used for encrypted card data.
Declared In
MppCardDataParameters.h
initialVector
Initial Vector used for encrypted card data.
@property (nonatomic, copy, readonly, nullable) NSString *initialVector
Return Value
Initial Vector.
Discussion
Initial Vector used for encrypted card data.
Declared In
MppCardDataParameters.h