Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we test Apple pay in simulator

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

like image 382
Gopal Devra Avatar asked Nov 28 '15 03:11

Gopal Devra


People also ask

Can you test in app purchases on simulator?

It is impossible to make a purchase on a simulator (it is only possible to request a list of available purchases). To test purchases, you first need to set up products on App Store Connect and then use the user's sandbox environment and a real device.

How do I test my Apple Pay device?

Adding a Test Card NumberMake sure to sign out of iCloud and sign into your test device with your sandbox tester account. Go to Wallet and tap Add Credit or Debit Card. Using your test credential, follow the steps to add a new card using manual entry. After your card has been added, you may begin testing.


2 Answers

In Xcode 12.5 and iOS 14.5 you can do that using

opt + cmd + A

enter image description here

like image 111
CopsOnRoad Avatar answered Oct 18 '22 05:10

CopsOnRoad


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.

like image 43
hmlasnk Avatar answered Oct 18 '22 06:10

hmlasnk