Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check devices with Apple Pay capability [duplicate]

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.

like image 889
Rein rPavi Avatar asked May 25 '16 14:05

Rein rPavi


People also ask

Can 2 phones have the same card on Apple Pay?

Yes, you can add your card to multiple Apple Pay Passbooks/Wallets on up to nine devices.

Can you trace an Apple Pay payment?

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.

How do I know if Apple Pay has been used?

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.

How do I find devices on Apple Pay?

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.


1 Answers

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.

like image 167
darrenallen7 Avatar answered Oct 16 '22 23:10

darrenallen7