There's not a built-in way to do this in SwiftUI, so a lot of people have used HostingControllers and UIViewControllerRepresentable to implement Apple Pay. To try this in actual SwiftUI code, check the answer on this stack overflow question - https://stackoverflow.com/a/61748421/8062156 and let me know if it helps you out