Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deep Linking from Wallet to Cordova app and then calling back Apple Wallet to le tknow its good/bad #13

Open
fortivait opened this issue Jun 10, 2020 · 7 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@fortivait
Copy link

fortivait commented Jun 10, 2020

Hi,
Is there method available to call back to Apple wallet to let know the card in wallet is good/bad to complete activation of card ?
Using plugin to check wallet is there and checkPairedDeviceyBySuffix to make sure cards are matching.. need next method to complete activation in wallet

Appreciate help

Cheers

@fortivait
Copy link
Author

fortivait commented Jun 11, 2020

Also would it be possible to add this method to plugin
Get the list of payment passes on Apple Wallet on iPhone
• passes(of:)
• PKPassType.payment

@tomavic tomavic added enhancement New feature or request question Further information is requested labels Jun 19, 2020
@tomavic
Copy link
Owner

tomavic commented Jun 21, 2020

Hi @fortivait

Currently you can check if a certain card is in wallet or not, then you have the option to add it or not based on if it exist or not

@tomavic tomavic reopened this Jun 21, 2020
@faugusztin
Copy link

What @fortivait mentions is a valid enhancement request, as adding the card via wallet and getting all the way to the final callback doesn't necessarily mean that the card is usable, also there is no way right now to get the primaryAccountIdentifier back to JS code.

It would be good to have an plugin method, which returns the result of NSArray<PKPass *> *paymentPasses = [passLibrary passesOfType:PKPassTypePayment]; (and other respective lists from other API methods as needed) as a array of objects with properties from the pass to use in the JS code - including the activationState (which can be Activated, Activating, Deactivated, RequiresActivation, Suspended).

@faugusztin
Copy link

@fortivait If the card goes through the startAddPaymentPass and completeAddPaymentPass methods, the card is added to Apple Wallet and further activation steps are not part of PassLibrary API.
There is no 'completion' API to be added.

The only extra thing which could be added to plugin is a method to get the activation state of the card, or a method to return the whole PKPass object (or array of them), obviously transformed to a JSON-like object. That way you could check what is the current state of said card.

@fortivait
Copy link
Author

The use case we were trying to build was for Issuer Flow...
Start in Wallet and when there is Step up Transition to App, when App Launches need to query Wallet for this ListOfPaymentPasses is needed, internal check validate PaymentPass belongs to Customer Logged in to App then get OTP Token from network provider and call below below[activateSecureElementPass] to Complete Activation..
activateSecureElementPass:withActivationData:completion:
https://developer.apple.com/documentation/passkit/pkpasslibrary/3543451-activatesecureelementpass?language=objc

@faugusztin
Copy link

The plugin right now implements only in-app provisioning flow (starts in app, goes to wallet), what you described is the in-app verification flow (starts in wallet, goes to app).
Indeed, the in-app verification flow requires implementation of activatePaymentPass (or activateSecureElementPass) method.

Unfortunately that method is not implemented yet in this plugin.

@Qu1lby
Copy link

Qu1lby commented May 20, 2021

Hi everybody, is there any way the in-app verification flow would be implemented on this plugin ? Or do you know any way we could have this feature on another plugin ? Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants