I want to know is there any API or piece of code to check weather a device is capable for Apple Pay.
I don't want to add static if else
to check.
As we know Apple Pay is supported with minimum iOS 8.3 and iPhone 5S and above.
I am showing informative images in my app and they should come only if device is capable of Apple Pay. Means it should not come for iPhone 4/4S or all other devices with iOS less than 8.3
As per apple the following methods help me identifing if device supports payments. (Not exactly what I am looking for)
+ canMakePayments
+ canMakePaymentsUsingNetworks:
+ canMakePaymentsUsingNetworks:capabilities:
any help please. thanks in advance.
Yes, you can add your card to multiple Apple Pay Passbooks/Wallets on up to nine devices.
When you make a purchase using Apple Pay from a participating app or website on your iPhone, iPad, or Mac, you can track your order in the Wallet app on your iPhone. To use Order Tracking in the Wallet app, you need: An iPhone with the latest version of iOS. An Apple ID signed in to your iPhone.
Open the Settings app, then tap Wallet & Apple Pay. Tap your Apple Cash card, then tap the Transactions tab. Tap a specific transaction for more details.
Go to Settings > Wallet & Apple Pay. Choose options such as the following: Double-Click Side Button: (on an iPhone with Face ID) Your cards and passes appear on the screen when you double-click the side button.
As per the Apple Docs +canMakePayments
is the call you want. It will return YES if the device supports it regardless of cards being configured.
On devices that support making payments but don’t have any payment cards configured, the canMakePayments method returns YES because the hardware and parental controls allow making payments, but the canMakePaymentsUsingNetworks: method returns NO regardless of network.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With