device.confirmApplePay(). It can also add a pass to Apple Wallet and check that it’s there.
Apple Pay flows run on a private device: an iPhone dedicated to your team, with a passcode and a card in Apple Wallet. Contact your QA Wolf representative to set one up, and tell them which payment provider your checkout uses.
What you can test
- Apple Pay in Safari — your website’s checkout, in Safari on the iPhone.
- Apple Pay in your iOS app — your app’s checkout, including a checkout built as a web page inside the app.
- Apple Wallet passes — a pass your app or website adds to Apple Wallet, checked in the Wallet app.
Payment cards
QA Wolf adds the card to Wallet when it sets up the iPhone. Which card depends on your payment provider:- Apple’s Apple Pay sandbox — one of Apple’s sandbox test cards, under a sandbox tester account. Your team creates the sandbox tester in App Store Connect, on an email address QA Wolf gives you.
- Stripe test mode — a real card on a real Apple Account. Stripe doesn’t charge it in test mode.
Confirm a payment
1
Open your checkout and tap the Apple Pay button.
2
Wait for the Apple Pay sheet to show the card and “Confirm with AssistiveTouch”.
3
Call
device.confirmApplePay(driver). It confirms the payment and enters the iPhone’s passcode.4
Assert on the result in your app or website, such as the order confirmation.
device.confirmApplePay() doesn’t open the Apple Pay sheet or pick a card. It fails if the sheet isn’t on screen, or if it doesn’t show “Confirm with AssistiveTouch”. Contact your QA Wolf representative if that happens.