I'm integrating Apple Pay now and I see iOS Human Interface Guidelines for Apple Pay.
https://developer.apple.com/ios/human-interface-guidelines/technologies/apple-pay/
How can I open the Wallet app when the user taps a button?
Check out the PKPaymentButton
. There are already pre-built buttons for this as part of PassKit.
let setupButton = PKPaymentButton(type: .setUp, style: .black)
More information can be found at the PKPaymentButton Reference.
EDIT:
PKPassLibrary
can actually perform the action. You can use it like so:
let library = PKPassLibrary()
library.openPaymentSetup()
More information can be found here.
Note: The above call will only work on a real iOS device.
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