Search code examples
objective-cios11credit-cardapplepaywallet

How to get the list of my bank related of Credit and Debit cards added to Apple Wallet.


In In-App Provisioning how to get the added my bank related cards list from my banking application? Is it possible? If possible can anyone share you the code snippet?


Solution

  • It is possible.

    NSArray *passes = [[[PKPassLibrary alloc] init] passes]; will return all payment passes from your bank. But you have to do the below requirements:-

    1. Enable Wallet capability for your app id
    2. Add pass types added in the developer portal to your entitlement file
    3. Use the updated profile with this entitlement