Returns a button instance with the Apple Pay logo.
- iOS 8.3+
- Mac Catalyst 13.0+
Kit (Apple Pay and Wallet)
PKPayment instance with the specified type and style.
Use the returned button to trigger a purchase through Apple Pay. Add the button instance to your view hierarchy, and then set its Target-Action by calling its
add method. In the action method, create the payment request and present the payment authorization view controller. These buttons can be used only to initiate Apple Pay transactions.
Do not display a button smaller than its intrinsic content size. You can extend the button’s width to fit your layout, but do not reduce the width or change the button’s height.
For more information on using Apple Pay, see Apple Pay Programming Guide.