MeaPushProvisioning
Objective-C
@interface MeaPushProvisioning : NSObject
Swift
class MeaPushProvisioning : NSObject
Provides API for interaction with the MeaPushProvisioning library using class methods.
-
Undocumented
Declaration
Objective-C
@property (class, readonly) NSString *ClickToPaySwift
class var clickToPay: String { get }
-
Returns payment app instance id.
Method returns
paymentAppInstanceIdif it exists or generates a new one.Declaration
Objective-C
+ (NSString *_Nonnull)paymentAppInstanceId;Swift
class func paymentAppInstanceId() -> StringReturn Value
Payment app instance id.
-
Loads provided client configuration file.
Declaration
Objective-C
+ (void)loadConfig:(NSString *_Nonnull)configFileName;Swift
class func loadConfig(_ configFileName: String)Parameters
configFileNameFile name of the provided client configuration file.
-
Returns hash of the loaded configuration.
Declaration
Objective-C
+ (NSString *_Nonnull)configurationHash;Swift
class func configurationHash() -> StringReturn Value
hash of the loaded configuration or an empty string when configuration is not loaded.
-
Returns version code of the SDK.
Declaration
Objective-C
+ (nonnull NSString *)versionCode;Swift
class func versionCode() -> StringReturn Value
Version code.
-
Returns version name of the SDK.
Example: “mpp-test-1.0.0”
Declaration
Objective-C
+ (nonnull NSString *)versionName;Swift
class func versionName() -> StringReturn Value
Version name.
-
Switch enable/disable debug logging.
Declaration
Objective-C
+ (void)setDebugLoggingEnabled:(BOOL)enabled;Swift
class func setDebugLoggingEnabled(_ enabled: Bool)Parameters
enabledEnable or disable debug logging.
-
Initiate in-app push provisioning with MppCardDataParameters parameter.
Check if the payment card can be added to Apple Pay by using primaryAccountIdentifier in response.
Declaration
Objective-C
+ (void)initializeOemTokenization: (MppCardDataParameters *_Nonnull)cardDataParameters completionHandler: (nonnull void (^)( MppInitializeOemTokenizationResponseData *_Nullable, NSError *_Nullable))completionHandler;Swift
class func initializeOemTokenization(_ cardDataParameters: MppCardDataParameters) async throws -> MppInitializeOemTokenizationResponseDataParameters
cardDataParametersCard data parameters as instance of MppCardDataParameters containing the card information.
completionHandlerThe code block invoked when request is completed.
Parameters for the
completionHandler:- MppInitializeOemTokenizationResponseData
*_Nullable data-Initialization response data in case of success NSError *_Nullable error- Error object in case of failure
- MppInitializeOemTokenizationResponseData
-
Complete in-app push provisioning. Exchanges Apple certificates and signature with Issuer Host.
Delegate should implement
PKAddPaymentPassViewControllerDelegateprotocol to call completeOemTokenization:completionHandler: method, once the data is exchangedPKAddPaymentPassRequestis passed to the handler to add the payment card to Apple Wallet. In the end and delegate method is invoked to inform you if request has succeeded or failed.Declaration
Objective-C
+ (void)completeOemTokenization: (MppCompleteOemTokenizationData *_Nonnull)tokenizationData completionHandler: (nonnull void (^)( MppCompleteOemTokenizationResponseData *_Nullable, NSError *_Nullable))completionHandler;Swift
class func completeOemTokenization(_ tokenizationData: MppCompleteOemTokenizationData) async throws -> MppCompleteOemTokenizationResponseDataParameters
tokenizationDataCard data parameters as instance of MppCardDataParameters containing the card information.
completionHandlerThe code block invoked when request is completed.
Parameters for the
completionHandler:- MppCompleteOemTokenizationResponseData
*_Nullable data- Completition response data in case of success NSError *_Nullable error- Error object in case of failure
- MppCompleteOemTokenizationResponseData
-
Method gets activation data (cryptographic OTP) for the Secure Element pass activation via
activateSecureElementPass:withActivationData:completionHandler:Declaration
Objective-C
+ (void)getActivationData:(MppCardDataParameters *_Nonnull)cardDataParameters completionHandler: (nonnull void (^)(NSString *_Nullable, NSError *_Nullable))completionHandler;Swift
class func activationData(_ cardDataParameters: MppCardDataParameters) async throws -> StringParameters
cardDataParametersCard data parameters as instance of MppCardDataParameters containing the card information.
completionHandlerThe code block invoked when request is completed.
Parameters for the
completionHandler:NSString *_Nullable activationData- Activation data string in case of successNSError *_Nullable error- Error object in case of failure
-
Activates a Secure Element pass using Activation Data.
Declaration
Objective-C
+ (void) activateSecureElementPass:(PKSecureElementPass *_Nonnull)secureElementPass withActivationData:(NSString *_Nonnull)activationData completionHandler: (nonnull void (^)(BOOL, NSError *_Nullable))completionHandler;Swift
class func activate(_ secureElementPass: PKSecureElementPass, withActivationData activationData: String) async throws -> BoolParameters
secureElementPassThe Secure Element pass to activate.
activationDataA cryptographic value that the activation process requires as hex string.
completionHandlerThe code block invoked when request is completed.
Parameters for the
completionHandler:BOOL success-trueif the pass activates; otherwise,falseNSError *_Nullable error- Error object in case of failure
-
Activates a Secure Element pass.
Declaration
Objective-C
+ (void) activateSecureElementPass:(PKSecureElementPass *_Nonnull)secureElementPass withPaymentNetwork:(PKPaymentNetwork _Nonnull)paymentNetwork completionHandler: (nonnull void (^)(BOOL, NSError *_Nullable))completionHandler;Swift
class func activate(_ secureElementPass: PKSecureElementPass, withPaymentNetwork paymentNetwork: PKPaymentNetwork) async throws -> BoolParameters
secureElementPassThe Secure Element pass to activate.
paymentNetworkPaymenent network.
completionHandlerThe code block invoked when request is completed.
Parameters for the
completionHandler:BOOL success-trueif the pass activates; otherwise,falseNSError *_Nullable error- Error object in case of failure
-
Verify if primaryAccountIdentifier can be used to add payment pass to iPhone Wallet and/or Watch.
Declaration
Objective-C
+ (BOOL)canAddSecureElementPassWithPrimaryAccountIdentifier: (NSString *_Nonnull)primaryAccountIdentifier;Swift
class func canAddSecureElementPass(withPrimaryAccountIdentifier primaryAccountIdentifier: String) -> BoolParameters
primaryAccountIdentifierPrimary account identifier returned by initializeOemTokenization:completionHandler: method in [MppInitializeOemTokenizationResponseData primaryAccountIdentifier] property.
Return Value
Bool value if payment pass can be added with given primaryAccountIdentifier.
-
Verify if primaryAccountNumberSuffix can be used to add payment pass. Check is specific for iPhone Wallet.
Declaration
Objective-C
+ (BOOL)canAddSecureElementPassWithPrimaryAccountNumberSuffix: (NSString *_Nonnull)primaryAccountNumberSuffix;Swift
class func canAddSecureElementPass(withPrimaryAccountNumberSuffix primaryAccountNumberSuffix: String) -> BoolParameters
primaryAccountNumberSuffixPAN suffix.
Return Value
Bool value if payment pass can be added with given primaryAccountNumberSuffix.
-
Verify if payment pass exists with primaryAccountIdentifier. Check is specific for iPhone Wallet.
Declaration
Objective-C
+ (BOOL)secureElementPassExistsWithPrimaryAccountIdentifier: (NSString *_Nonnull)primaryAccountIdentifier;Swift
class func secureElementPassExists(withPrimaryAccountIdentifier primaryAccountIdentifier: String) -> BoolParameters
primaryAccountIdentifierPrimary account identifier returned by initializeOemTokenization:completionHandler: method in [MppInitializeOemTokenizationResponseData primaryAccountIdentifier] property.
Return Value
Bool value if payment pass exists with given primaryAccountIdentifier.
-
Verify if remote payment pass exists with primaryAccountIdentifier. Check is specific for Watch. Call when watch is paired.
Declaration
Objective-C
+ (BOOL)remoteSecureElementPassExistsWithPrimaryAccountIdentifier: (NSString *_Nonnull)primaryAccountIdentifier;Swift
class func remoteSecureElementPassExists(withPrimaryAccountIdentifier primaryAccountIdentifier: String) -> BoolParameters
primaryAccountIdentifierPrimary account identifier returned by initializeOemTokenization:completionHandler: method in [MppInitializeOemTokenizationResponseData primaryAccountIdentifier] property.
Return Value
Bool value if remote payment pass exists with given primaryAccountIdentifier.
-
Verify if payment pass exists with primaryAccountNumberSuffix. Check is specific for iPhone.
Declaration
Objective-C
+ (BOOL)secureElementPassExistsWithPrimaryAccountNumberSuffix: (NSString *_Nonnull)primaryAccountNumberSuffix;Swift
class func secureElementPassExists(withPrimaryAccountNumberSuffix primaryAccountNumberSuffix: String) -> BoolParameters
primaryAccountNumberSuffixPAN suffix.
Return Value
Bool value if payment pass exists with given primaryAccountNumberSuffix.
-
Verify if remote payment pass exists with primaryAccountNumberSuffix. Check is specific for Watch. Call when watch is paired.
Declaration
Objective-C
+ (BOOL)remoteSecureElementPassExistsWithPrimaryAccountNumberSuffix: (NSString *_Nonnull)primaryAccountNumberSuffix;Swift
class func remoteSecureElementPassExists(withPrimaryAccountNumberSuffix primaryAccountNumberSuffix: String) -> BoolParameters
primaryAccountNumberSuffixPAN suffix.
Return Value
Bool value if remote payment pass exists with given primaryAccountNumberSuffix.
-
Returns secure element pass with primaryAccountIdentifier.
Declaration
Objective-C
+ (nonnull PKSecureElementPass *)secureElementPassWithPrimaryAccountIdentifier: (NSString *_Nonnull)primaryAccountIdentifier;Swift
class func secureElementPass(withPrimaryAccountIdentifier primaryAccountIdentifier: String) -> PKSecureElementPassParameters
primaryAccountIdentifierPrimary account identifier returned by initializeOemTokenization:completionHandler: method in [MppInitializeOemTokenizationResponseData primaryAccountIdentifier] property.
Return Value
Bool value if remote secure element can be added with given primaryAccountIdentifier. Returns true if Watch is not paired.
-
Returns secure element pass with primaryAccountNumberSuffix.
Declaration
Objective-C
+ (nonnull PKSecureElementPass *) secureElementPassWithPrimaryAccountNumberSuffix: (NSString *_Nonnull)primaryAccountNumberSuffix;Swift
class func secureElementPass(withPrimaryAccountNumberSuffix primaryAccountNumberSuffix: String) -> PKSecureElementPassParameters
primaryAccountNumberSuffixPAN suffix.
Return Value
Bool value if payment pass can be added with given primaryAccountNumberSuffix. Returns true if Watch is not paired.
-
Returns secure element pass with primaryAccountIdentifier.
Declaration
Objective-C
+ (nonnull PKSecureElementPass *) remoteSecureElementPassWithPrimaryAccountIdentifier: (NSString *_Nonnull)primaryAccountIdentifier;Swift
class func remoteSecureElementPass(withPrimaryAccountIdentifier primaryAccountIdentifier: String) -> PKSecureElementPassParameters
primaryAccountIdentifierPrimary account identifier returned by initializeOemTokenization:completionHandler: method in [MppInitializeOemTokenizationResponseData primaryAccountIdentifier] property.
Return Value
remote secure element pass.
-
Returns remote secure element pass with primaryAccountNumberSuffix.
Declaration
Objective-C
+ (nonnull PKSecureElementPass *) remoteSecureElementPassWithPrimaryAccountNumberSuffix: (NSString *_Nonnull)primaryAccountNumberSuffix;Swift
class func remoteSecureElementPass(withPrimaryAccountNumberSuffix primaryAccountNumberSuffix: String) -> PKSecureElementPassParameters
primaryAccountNumberSuffixPAN suffix.
Return Value
remote secure element pass.
-
Returns secure element pass with serialNumber.
Declaration
Objective-C
+ (nonnull PKSecureElementPass *)secureElementPassWithSerialNumber: (NSString *_Nonnull)serialNumber;Swift
class func secureElementPass(withSerialNumber serialNumber: String) -> PKSecureElementPassParameters
serialNumberSerial number.
Return Value
secure element pass.
-
Returns remote secure element pass with serialNumber.
Declaration
Objective-C
+ (nonnull PKSecureElementPass *)remoteSecureElementPassWithSerialNumber: (NSString *_Nonnull)serialNumber;Swift
class func remoteSecureElementPass(withSerialNumber serialNumber: String) -> PKSecureElementPassParameters
serialNumberSerial number.
Return Value
remote secure element pass.
-
Presents a Secure Element pass with Primary Account Identifier.
Declaration
Objective-C
+ (void)presentSecureElementPassWithPrimaryAccountIdentifier: (NSString *_Nonnull)primaryAccountIdentifier;Swift
class func presentSecureElementPass(withPrimaryAccountIdentifier primaryAccountIdentifier: String)Parameters
primaryAccountIdentifierPrimary account identifier returned by initializeOemTokenization:completionHandler: method in [MppInitializeOemTokenizationResponseData primaryAccountIdentifier] property.
-
Presents a Secure Element pass with PAN Suffix.
Declaration
Objective-C
+ (void)presentSecureElementPassWithPrimaryAccountNumberSuffix: (NSString *_Nonnull)primaryAccountNumberSuffix;Swift
class func presentSecureElementPass(withPrimaryAccountNumberSuffix primaryAccountNumberSuffix: String)Parameters
primaryAccountNumberSuffixPAN suffix.
-
Checks if Watch is paired.
Declaration
Objective-C
+ (void)isWatchPaired:(nonnull void (^)(BOOL))completion;Swift
class func isWatchPaired() async -> BoolParameters
completionThe code block invoked when request is completed. Returns true if Watch is paired.
-
Checks if remote payment pass with primaryAccountIdentifier can be added.
Declaration
Objective-C
+ (BOOL)canAddRemoteSecureElementPassWithPrimaryAccountIdentifier: (NSString *_Nonnull)primaryAccountIdentifier;Swift
class func canAddRemoteSecureElementPass(withPrimaryAccountIdentifier primaryAccountIdentifier: String) -> BoolReturn Value
Bool value if payment pass can be added with given primaryAccountIdentifier. Returns true if Watch is not paired.
-
Checks if remote payment pass with primaryAccountNumberSuffix can be added.
Declaration
Objective-C
+ (BOOL)canAddRemoteSecureElementPassWithPrimaryAccountNumberSuffix: (NSString *_Nonnull)primaryAccountNumberSuffix;Swift
class func canAddRemoteSecureElementPass(withPrimaryAccountNumberSuffix primaryAccountNumberSuffix: String) -> BoolReturn Value
Bool value if payment pass can be added with given primaryAccountNumberSuffix. Returns true if Watch is not paired.
-
Checks if remote payment pass with primaryAccountIdentifier can be added.
Declaration
Objective-C
+ (void)canAddRemoteSecureElementPassWithPrimaryAccountIdentifier: (NSString *_Nonnull)primaryAccountIdentifier completion: (nonnull void (^)( BOOL))completion;Swift
class func canAddRemoteSecureElementPass(withPrimaryAccountIdentifier primaryAccountIdentifier: String) async -> BoolParameters
primaryAccountIdentifierPrimary account identifier returned by initializeOemTokenization:completionHandler: method in [MppInitializeOemTokenizationResponseData primaryAccountIdentifier] property.
completionThe code block invoked when request is completed, with Boolean argument set to true if remote payment pass can be added.
-
Checks if remote payment pass with primaryAccountNumberSuffix can be added.
Declaration
Objective-C
+ (void)canAddRemoteSecureElementPassWithPrimaryAccountNumberSuffix: (NSString *_Nonnull)primaryAccountNumberSuffix completion: (nonnull void (^)( BOOL)) completion;Swift
class func canAddRemoteSecureElementPass(withPrimaryAccountNumberSuffix primaryAccountNumberSuffix: String) async -> BoolParameters
primaryAccountNumberSuffixPAN suffix.
completionThe code block invoked when request is completed, with Boolean argument set to true if remote payment pass can be added.
-
Passes in the user’s pass library that the app can access.
Declaration
Objective-C
+ (nonnull NSArray<PKPass *> *)passes;Swift
class func passes() -> [PKPass]Return Value
Passes in the user’s pass library that the app can access.
-
Secure Element passes that PassKit stores on paired devices that the app can access.
Declaration
Objective-C
+ (nonnull NSArray<PKSecureElementPass *> *)remoteSecureElementPasses;Swift
class func remoteSecureElementPasses() -> [PKSecureElementPass]Return Value
Secure Element passes that PassKit stores on paired devices.
-
Retrieves eligible Token Requestors which support push provisioning for provided card data.
Once list of requestors is received, user has an option to select the one to be used.
Declaration
Objective-C
+ (void) getEligibleTokenRequestors: (MppCardDataParameters *_Nonnull)cardDataParameters completionHandler: (nonnull void (^)(MppGetTokenRequestorsResponseData *_Nullable, NSError *_Nullable))completionHandler;Swift
class func eligibleTokenRequestors(_ cardDataParameters: MppCardDataParameters) async throws -> MppGetTokenRequestorsResponseDataParameters
cardDataParametersCard data parameters as instance of MppCardDataParameters containing the card information to be provisioned by the token requestor.
completionHandlerThe code block invoked when request is completed.
Parameters for the
completionHandler:- MppGetTokenRequestorsResponseData
*_Nullable data- Eligible Token Requestors in case of success NSError *_Nullable error- Error object in case of failure
- MppGetTokenRequestorsResponseData
-
Retrieves eligible Token Requestors which support push provisioning for provided cards.
Once list of requestors is received, user has an option to select the one to be used.
Declaration
Objective-C
+ (void)getEligibleTokenRequestorsForCards: (NSArray<MppCardDataParameters *> *_Nonnull)cards completionHandler: (nonnull void (^)( MppGetTokenRequestorsResponseData *_Nullable, NSError *_Nullable))completionHandler;Swift
class func eligibleTokenRequestors(forCards cards: [MppCardDataParameters]) async throws -> MppGetTokenRequestorsResponseDataParameters
cardsArray of the cards to retrieve the eligible token requestors for.
completionHandlerThe code block invoked when request is completed.
Parameters for the
completionHandler:- MppGetTokenRequestorsResponseData
*_Nullable data- Eligible Token Requestors in case of success NSError *_Nullable error- Error object in case of failure
- MppGetTokenRequestorsResponseData
-
Retrieves eligible Token Requestors which support push provisioning for provided account ranges.
Once list of requestors is received, user has an option to select the one to be used.
Declaration
Objective-C
+ (void)getEligibleTokenRequestorsForAccountRanges: (NSArray<NSString *> *_Nonnull)accountRanges completionHandler: (nonnull void (^)( MppGetTokenRequestorsResponseData *_Nullable, NSError *_Nullable))completionHandler;Swift
class func eligibleTokenRequestors(forAccountRanges accountRanges: [String]) async throws -> MppGetTokenRequestorsResponseDataParameters
accountRangesArray of the starting numbers of the account ranges to retrieve the eligible token requestors for.
completionHandlerThe code block invoked when request is completed.
Parameters for the
completionHandler:- MppGetTokenRequestorsResponseData
*_Nullable tokenRequestors- Eligible Token Requestors in case of success NSError *_Nullable error- Error object in case of failure
- MppGetTokenRequestorsResponseData
-
Gets static Assets such as: Card art, Mastercard brand logos, Issuers logos. Every Asset in the repository is referenced using an assetId.
Declaration
Objective-C
+ (void)getAsset:(NSString *_Nonnull)assetId completionHandler:(nonnull void (^)(MppGetAssetResponseData *_Nullable, NSError *_Nullable))completionHandler;Swift
class func asset(_ assetId: String) async throws -> MppGetAssetResponseDataParameters
assetIdAsset Id value used to reference an Asset.
completionHandlerThe code block invoked when request is completed.
-
Pushes particular card data to a selected Token Requestor.
Token Requestor selection is done from the list of eligible Token Requestors previously returned by getTokenRequestors:completionHandler: method. In response Token Requestor will return a receipt, which needs to be provided to a merchant or any other instance where the card will be digitized in. Receipt can be a deep-link to a bank’s or merchant application, and it can also be a URL to a web page.
Declaration
Objective-C
+ (void) getTokenizationReceipt:(NSString *_Nonnull)tokenRequestorId cardDataParameters:(MppCardDataParameters *_Nonnull)cardDataParameters completionHandler: (nonnull void (^)(MppGetTokenizationReceiptResponseData *_Nullable, NSError *_Nullable))completionHandler;Swift
class func tokenizationReceipt(_ tokenRequestorId: String, cardDataParameters: MppCardDataParameters) async throws -> MppGetTokenizationReceiptResponseDataParameters
tokenRequestorIdIdentifies the Token Requestor, received from getTokenRequestors:completionHandler: method.
cardDataParametersCard data parameters as instance of MppCardDataParameters containing the card information to be provisioned by the token requestor.
completionHandlerThe code block invoked when request is completed.
Parameters for the
completionHandler:- MppGetTokenizationReceiptResponseData
*_Nullable data- Tokenization receipt data in case of success NSError *_Nullable error- Error object in case of failure
- MppGetTokenizationReceiptResponseData
-
Pushes particular card data to a selected Token Requestor.
Token Requestor selection is done from the list of eligible Token Requestors previously returned by getTokenRequestors:completionHandler: method. In response Token Requestor will return a receipt, which needs to be provided to a merchant or any other instance where the card will be digitized in. Receipt can be a deep-link to a bank’s or merchant application, and it can also be a URL to a web page.
Declaration
Objective-C
+ (void) getTokenizationReceipt:(NSString *_Nonnull)tokenRequestorId cardDataParameters:(MppCardDataParameters *_Nonnull)cardDataParameters intent:(MppIntent)intent completionHandler: (nonnull void (^)(MppGetTokenizationReceiptResponseData *_Nullable, NSError *_Nullable))completionHandler;Swift
class func tokenizationReceipt(_ tokenRequestorId: String, cardDataParameters: MppCardDataParameters, intent: MppIntent) async throws -> MppGetTokenizationReceiptResponseDataParameters
tokenRequestorIdIdentifies the Token Requestor, received from getTokenRequestors:completionHandler: method.
cardDataParametersCard data parameters as instance of MppCardDataParameters containing the card information to be provisioned by the token requestor.
intentOptional, required for VISA. The intent helps VCEH to determine the relevant user experience. PUSH_PROV_MOBILE, PUSH_PROV_ONFILE - Synchronous flow. Enrollment of card credentials is completed as part of the same session on the same device as issuer and TR. PUSH_PROV_CROSS_USER, PUSH_PROV_CROSS_DEVICE - Asynchronous flow.
completionHandlerThe code block invoked when request is completed.
Parameters for the
completionHandler:- MppGetTokenizationReceiptResponseData
*_Nullable data- Tokenization receipt data in case of success NSError *_Nullable error- Error object in case of failure
- MppGetTokenizationReceiptResponseData
-
Checks if specified card is added to selected Token Requestor / Click to Pay.
Declaration
Objective-C
+ (void)check:(NSString *_Nullable)tokenRequestorId cardDataParameters:(MppCardDataParameters *_Nonnull)cardDataParameters completionHandler:(nonnull void (^)(MppCheckResponseData *_Nullable, NSError *_Nullable))completionHandler;Swift
class func check(_ tokenRequestorId: String?, cardDataParameters: MppCardDataParameters) async throws -> MppCheckResponseDataParameters
tokenRequestorIdMeaPushProvisioning.ClickToPayor eligible Token Requestor Id.cardDataParametersCard data parameters as instance of MppCardDataParameters containing the card information.
completionHandlerThe code block invoked when request is completed.
-
Pushes (enroll) specified card to selected Token Requestor / Click to Pay.
Declaration
Objective-C
+ (void)push:(NSString *_Nullable)tokenRequestorId cardDataParameters:(MppCardDataParameters *_Nonnull)cardDataParameters consumerInformation:(MppConsumerInformation *_Nonnull)consumerInformation billingAddress:(MppBillingAddress *_Nonnull)billingAddress completionHandler:(nonnull void (^)(MppPushResponseData *_Nullable, NSError *_Nullable))completionHandler;Swift
class func push(_ tokenRequestorId: String?, cardDataParameters: MppCardDataParameters, consumerInformation: MppConsumerInformation, billingAddress: MppBillingAddress) async throws -> MppPushResponseDataParameters
tokenRequestorIdMeaPushProvisioning.ClickToPayor eligible Token Requestor Id.cardDataParametersCard data parameters as instance of MppCardDataParameters containing the card information.
consumerInformationConsumer information.
billingAddressBilling address.
completionHandlerThe code block invoked when request is completed.
-
Deprecated
use ‘getConsumerDetails:paymentNetwork:externalConsumerId:externalConsumerId:completionHandler:’ instead.
Retrieves consumer and cards (payment instrument) information.
Declaration
Objective-C
+ (void)getConsumerDetails:(NSString *_Nullable)tokenRequestorId externalConsumerId:(NSString *_Nonnull)externalConsumerId completionHandler: (nonnull void (^)(MppConsumerDetails *_Nullable, NSError *_Nullable))completionHandler;Swift
class func consumerDetails(_ tokenRequestorId: String?, externalConsumerId: String) async throws -> MppConsumerDetailsParameters
tokenRequestorIdMeaPushProvisioning.ClickToPayor eligible Token Requestor Id.externalConsumerIdExternal consumer Id.
completionHandlerThe code block invoked when request is completed. @deprecated Use
getConsumerDetails:paymentNetwork:externalConsumerId:externalConsumerId:completionHandler:instead. -
Retrieves consumer and cards (payment instrument) information.
Declaration
Objective-C
+ (void)getConsumerDetails:(NSString *_Nullable)tokenRequestorId paymentNetwork:(PKPaymentNetwork _Nonnull)paymentNetwork externalConsumerId:(NSString *_Nonnull)externalConsumerId completionHandler: (nonnull void (^)(MppConsumerDetails *_Nullable, NSError *_Nullable))completionHandler;Swift
class func consumerDetails(_ tokenRequestorId: String?, paymentNetwork: PKPaymentNetwork, externalConsumerId: String) async throws -> MppConsumerDetailsParameters
tokenRequestorIdMeaPushProvisioning.ClickToPayor eligible Token Requestor Id.paymentNetworkPayment Network.
externalConsumerIdExternal consumer Id.
completionHandlerThe code block invoked when request is completed.
-
Retrieves consumer request status.
Declaration
Objective-C
+ (void)getConsumerRequestStatus:(NSString *_Nullable)tokenRequestorId requestTraceId:(NSString *_Nonnull)requestTraceId completionHandler: (nonnull void (^)(MppConsumerRequestStatus *_Nullable, NSError *_Nullable))completionHandler;Swift
class func consumerRequestStatus(_ tokenRequestorId: String?, requestTraceId: String) async throws -> MppConsumerRequestStatusParameters
tokenRequestorIdMeaPushProvisioning.ClickToPayor eligible Token Requestor Id.requestTraceIdRequest trace Id.
completionHandlerThe code block invoked when request is completed.
-
Deprecated
Use ‘updateConsumerDetails:paymentNetwork:consumerInformation:completionHandler:’ instead.
Updates the consumer information such as customer name, email, or phone number. This method is applicable for Enrolled consumers only.
Declaration
Objective-C
+ (void)updateConsumerDetails:(NSString *_Nullable)tokenRequestorId consumerInformation: (MppConsumerInformation *_Nonnull)consumerInformation completionHandler: (nonnull void (^)(MppPushResponseData *_Nullable, NSError *_Nullable))completionHandler;Swift
class func updateConsumerDetails(_ tokenRequestorId: String?, consumerInformation: MppConsumerInformation) async throws -> MppPushResponseDataParameters
tokenRequestorIdMeaPushProvisioning.ClickToPayor eligible Token Requestor Id.consumerInformationConsumer information.
completionHandlerThe code block invoked when request is completed. @deprecated Use
updateConsumerDetails:paymentNetwork:consumerInformation:completionHandler:instead. -
Updates the consumer information such as customer name, email, or phone number. This method is applicable for Enrolled consumers only.
Declaration
Objective-C
+ (void)updateConsumerDetails:(NSString *_Nullable)tokenRequestorId paymentNetwork:(PKPaymentNetwork _Nonnull)paymentNetwork consumerInformation: (MppConsumerInformation *_Nonnull)consumerInformation completionHandler: (nonnull void (^)(MppPushResponseData *_Nullable, NSError *_Nullable))completionHandler;Swift
class func updateConsumerDetails(_ tokenRequestorId: String?, paymentNetwork: PKPaymentNetwork, consumerInformation: MppConsumerInformation) async throws -> MppPushResponseDataParameters
tokenRequestorIdMeaPushProvisioning.ClickToPayor eligible Token Requestor Id.paymentNetworkPayment Network.
consumerInformationConsumer information.
completionHandlerThe code block invoked when request is completed.
-
Deprecated
Use ‘deleteConsumer:paymentNetwork:externalConsumerId:completionHandler:’ instead.
Deletes consumer information and all cards (payment instruments) related to the profile.
Declaration
Objective-C
+ (void)deleteConsumer:(NSString *_Nullable)tokenRequestorId externalConsumerId:(NSString *_Nonnull)externalConsumerId completionHandler:(nonnull void (^)(MppPushResponseData *_Nullable, NSError *_Nullable))completionHandler;Swift
class func deleteConsumer(_ tokenRequestorId: String?, externalConsumerId: String) async throws -> MppPushResponseDataParameters
tokenRequestorIdMeaPushProvisioning.ClickToPayor eligible Token Requestor Id.externalConsumerIdExternal consumer Id.
completionHandlerThe code block invoked when request is completed. @deprecated Use
deleteConsumer:paymentNetwork:externalConsumerId:completionHandler:instead. -
Deletes consumer information and all cards (payment instruments) related to the profile.
Declaration
Objective-C
+ (void)deleteConsumer:(NSString *_Nullable)tokenRequestorId paymentNetwork:(PKPaymentNetwork _Nonnull)paymentNetwork externalConsumerId:(NSString *_Nonnull)externalConsumerId completionHandler:(nonnull void (^)(MppPushResponseData *_Nullable, NSError *_Nullable))completionHandler;Swift
class func deleteConsumer(_ tokenRequestorId: String?, paymentNetwork: PKPaymentNetwork, externalConsumerId: String) async throws -> MppPushResponseDataParameters
tokenRequestorIdMeaPushProvisioning.ClickToPayor eligible Token Requestor Id.paymentNetworkPayment Network.
externalConsumerIdExternal consumer Id.
completionHandlerThe code block invoked when request is completed.
-
+updateCardDetails:externalConsumerId: cardDataParameters: cardholderName: expiryYear: expiryMonth: billingAddress: completionHandler: Deprecated
Use ‘updateCardDetails:paymentNetwork:externalConsumerId:cardDataParameters:cardholderName:expiryYear:expiryMonth:billingAddress:externalCardId:completionHandler:’ instead.
Updates card details.
Declaration
Objective-C
+ (void)updateCardDetails:(NSString *_Nullable)tokenRequestorId externalConsumerId:(NSString *_Nonnull)externalConsumerId cardDataParameters:(MppCardDataParameters *_Nonnull)cardDataParameters cardholderName:(NSString *_Nonnull)cardholderName expiryYear:(NSString *_Nonnull)expiryYear expiryMonth:(NSString *_Nonnull)expiryMonth billingAddress:(MppBillingAddress *_Nonnull)billingAddress completionHandler: (nonnull void (^)(MppPushResponseData *_Nullable, NSError *_Nullable))completionHandler;Swift
class func updateCardDetails(_ tokenRequestorId: String?, externalConsumerId: String, cardDataParameters: MppCardDataParameters, cardholderName: String, expiryYear: String, expiryMonth: String, billingAddress: MppBillingAddress) async throws -> MppPushResponseDataParameters
tokenRequestorIdMeaPushProvisioning.ClickToPayor eligible Token Requestor Id.externalConsumerIdExternal consumer Id.
cardDataParametersCard data object containing the card information.
cardholderNameCardholder name.
expiryYearExpiry year.
expiryMonthExpiry month.
billingAddressBilling address.
completionHandlerThe code block invoked when request is completed. @deprecated Use
updateCardDetails:paymentNetwork:externalConsumerId:cardDataParameters:cardholderName:expiryYear:expiryMonth:billingAddress:externalCardId:completionHandler:instead. -
+updateCardDetails:paymentNetwork: externalConsumerId: cardDataParameters: cardholderName: expiryYear: expiryMonth: billingAddress: externalCardId: completionHandler: Updates card details.
Declaration
Objective-C
+ (void)updateCardDetails:(NSString *_Nullable)tokenRequestorId paymentNetwork:(PKPaymentNetwork _Nonnull)paymentNetwork externalConsumerId:(NSString *_Nonnull)externalConsumerId cardDataParameters:(MppCardDataParameters *_Nonnull)cardDataParameters cardholderName:(NSString *_Nonnull)cardholderName expiryYear:(NSString *_Nonnull)expiryYear expiryMonth:(NSString *_Nonnull)expiryMonth billingAddress:(MppBillingAddress *_Nonnull)billingAddress externalCardId:(NSString *_Nullable)externalCardId completionHandler: (nonnull void (^)(MppPushResponseData *_Nullable, NSError *_Nullable))completionHandler;Swift
class func updateCardDetails(_ tokenRequestorId: String?, paymentNetwork: PKPaymentNetwork, externalConsumerId: String, cardDataParameters: MppCardDataParameters, cardholderName: String, expiryYear: String, expiryMonth: String, billingAddress: MppBillingAddress, externalCardId: String?) async throws -> MppPushResponseDataParameters
tokenRequestorIdMeaPushProvisioning.ClickToPayor eligible Token Requestor Id.paymentNetworkPayment Network.
externalConsumerIdExternal consumer Id.
cardDataParametersCard data object containing the card information.
cardholderNameCardholder name.
expiryYearExpiry year.
expiryMonthExpiry month.
billingAddressBilling address.
externalCardIdExternal card id.
completionHandlerThe code block invoked when request is completed.
-
Deprecated
Use ‘deleteCard:paymentNetwork:externalConsumerId:cardDataParameters:externalCardId:completionHandler:’ instead.
Deletes card (payment instrument) information from consumer profile.
Declaration
Objective-C
+ (void)deleteCard:(NSString *_Nullable)tokenRequestorId externalConsumerId:(NSString *_Nonnull)externalConsumerId cardDataParameters:(MppCardDataParameters *_Nonnull)cardDataParameters completionHandler:(nonnull void (^)(MppPushResponseData *_Nullable, NSError *_Nullable))completionHandler;Swift
class func deleteCard(_ tokenRequestorId: String?, externalConsumerId: String, cardDataParameters: MppCardDataParameters) async throws -> MppPushResponseDataParameters
tokenRequestorIdMeaPushProvisioning.ClickToPayor eligible Token Requestor Id.externalConsumerIdExternal consumer Id.
cardDataParametersCard data object containing the card information.
completionHandlerThe code block invoked when request is completed. @deprecated Use
deleteCard:paymentNetwork:externalConsumerId:cardDataParameters:externalCardId:completionHandler:instead. -
Deletes card (payment instrument) information from consumer profile.
Declaration
Objective-C
+ (void)deleteCard:(NSString *_Nullable)tokenRequestorId paymentNetwork:(PKPaymentNetwork _Nonnull)paymentNetwork externalConsumerId:(NSString *_Nonnull)externalConsumerId cardDataParameters:(MppCardDataParameters *_Nonnull)cardDataParameters externalCardId:(NSString *_Nullable)externalCardId completionHandler:(nonnull void (^)(MppPushResponseData *_Nullable, NSError *_Nullable))completionHandler;Swift
class func deleteCard(_ tokenRequestorId: String?, paymentNetwork: PKPaymentNetwork, externalConsumerId: String, cardDataParameters: MppCardDataParameters, externalCardId: String?) async throws -> MppPushResponseDataParameters
tokenRequestorIdMeaPushProvisioning.ClickToPayor eligible Token Requestor Id.paymentNetworkPayment Network.
externalConsumerIdExternal consumer Id.
cardDataParametersCard data object containing the card information.
externalCardIdExternal card Id.
completionHandlerThe code block invoked when request is completed.
-
Verify if primaryAccountIdentifier can be used to add payment pass to iPhone Wallet and/or Watch.
Declaration
Objective-C
+ (BOOL)canAddPaymentPassWithPrimaryAccountIdentifier: (NSString *_Nonnull)primaryAccountIdentifier;Swift
class func canAddPaymentPass(withPrimaryAccountIdentifier primaryAccountIdentifier: String) -> BoolParameters
primaryAccountIdentifierPrimary account identifier returned by initializeOemTokenization:completionHandler: method in [MppInitializeOemTokenizationResponseData primaryAccountIdentifier] property.
Return Value
Bool value if payment pass can be added with given primaryAccountIdentifier.
-
Verify if primaryAccountNumberSuffix can be used to add payment pass. Check is specific for iPhone.
Declaration
Objective-C
+ (BOOL)canAddPaymentPassWithPrimaryAccountNumberSuffix: (NSString *_Nonnull)primaryAccountNumberSuffix;Swift
class func canAddPaymentPass(withPrimaryAccountNumberSuffix primaryAccountNumberSuffix: String) -> BoolParameters
primaryAccountNumberSuffixPAN suffix.
Return Value
Bool value if payment pass can be added with given primaryAccountNumberSuffix.
-
Verify if payment pass exists with primaryAccountIdentifier. Check is specific for iPhone.
Declaration
Objective-C
+ (BOOL)paymentPassExistsWithPrimaryAccountIdentifier: (NSString *_Nonnull)primaryAccountIdentifier;Swift
class func paymentPassExists(withPrimaryAccountIdentifier primaryAccountIdentifier: String) -> BoolParameters
primaryAccountIdentifierPrimary account identifier returned by initializeOemTokenization:completionHandler: method in [MppInitializeOemTokenizationResponseData primaryAccountIdentifier] property.
Return Value
Bool value if payment pass exists with given primaryAccountIdentifier.
-
Verify if remote payment pass exists with primaryAccountIdentifier. Check is specific for Watch. Call when watch is paired.
Declaration
Objective-C
+ (BOOL)remotePaymentPassExistsWithPrimaryAccountIdentifier: (NSString *_Nonnull)primaryAccountIdentifier;Swift
class func remotePaymentPassExists(withPrimaryAccountIdentifier primaryAccountIdentifier: String) -> BoolParameters
primaryAccountIdentifierPrimary account identifier returned by initializeOemTokenization:completionHandler: method in [MppInitializeOemTokenizationResponseData primaryAccountIdentifier] property.
Return Value
Bool value if remote payment pass exists with given primaryAccountIdentifier.
-
Verify if payment pass exists with primaryAccountNumberSuffix. Check is specific for iPhone.
Declaration
Objective-C
+ (BOOL)paymentPassExistsWithPrimaryAccountNumberSuffix: (NSString *_Nonnull)primaryAccountNumberSuffix;Swift
class func paymentPassExists(withPrimaryAccountNumberSuffix primaryAccountNumberSuffix: String) -> BoolParameters
primaryAccountNumberSuffixPAN suffix.
Return Value
Bool value if payment pass exists with given primaryAccountNumberSuffix.
-
Verify if remote payment pass exists with primaryAccountNumberSuffix. Check is specific for Watch. Call when watch is paired.
Declaration
Objective-C
+ (BOOL)remotePaymentPassExistsWithPrimaryAccountNumberSuffix: (NSString *_Nonnull)primaryAccountNumberSuffix;Swift
class func remotePaymentPassExists(withPrimaryAccountNumberSuffix primaryAccountNumberSuffix: String) -> BoolParameters
primaryAccountNumberSuffixPAN suffix.
Return Value
Bool value if remote payment pass exists with given primaryAccountNumberSuffix.
-
Undocumented
Declaration
Objective-C
+ (void)setSdkProperties:(NSDictionary *_Nonnull)properties;Swift
class func setSdkProperties(_ properties: [AnyHashable : Any])
MeaPushProvisioning Class Reference