Reputation: 614
I know that Apple pay testing we use Apple pay stubs in iOS 8, but please let me know how to use Apple pay without ApplePayStubs in iOS 9 in simulator.
Thanks in advance
Upvotes: 16
Views: 30091
Reputation: 267464
In Xcode 12.5 and iOS 14.5 you can do that using
opt + cmd + A
Upvotes: 7
Reputation: 1885
official documentation: https://developer.apple.com/library/archive/ApplePay_Guide/Authorization.html
NOTE
In Xcode 7.0 or later, you can test the payment authorization view controller in the simulator. It provides simulated cards for all the supported payment networks and returns dummy payment data in plain text. On a device, this data is encrypted with your merchant identifier and must be decrypted either on your server or by your payment processor.
Use the Apple Pay Sandbox environment to test your app on a device with test cards.
Although these techniques provide fast and convenient ways to test your code, you still need to thoroughly test Apple Pay on actual, physical devices with production cards.
Upvotes: 1
Reputation: 1322
Yes. You can test apple pay using iOS 9 simulator. So you don't need to add any testing sheet instead PKPaymentAuthorizationViewController. It's working on iOS 9 simulator. Make sure your app run on iPhone 6, iPhone 6 plus or latest version of simulator.
Upvotes: 9
Reputation: 614
Yes it is working in Simulator with Xcode 7 and iOS 9.
No need for bio metric thumb scanning.
Thanks all
Upvotes: 4