How do we know if users have finished payment setup through PassKit?

Our product have the interface to add credit cards through openPaymentSetup in PKPassLibrary. But I have no idea how to judge if the users have finished payment setup.

Does anyone know any good solution to judge that?

Any help would be appreciated.

Thanks.

Answered by Frameworks Engineer in 710727022

As long as your payment cards have been set up properly and are associated with your app then your app will be able to query them directly in the PKPassLibrary. You can use PKPassLibrary.passes(of: PKPassType) to query just payment passes.

This requires your payment cards to be configured properly. If this is not working for you, verify your payment network is correctly associating your app with them.

Accepted Answer

As long as your payment cards have been set up properly and are associated with your app then your app will be able to query them directly in the PKPassLibrary. You can use PKPassLibrary.passes(of: PKPassType) to query just payment passes.

This requires your payment cards to be configured properly. If this is not working for you, verify your payment network is correctly associating your app with them.

How do we know if users have finished payment setup through PassKit?
 
 
Q