#Shmarti-SwiftUI
1 messages · Page 1 of 1 (latest)
Hi there, you can find the SwiftUI example code in this doc https://stripe.com/docs/payments/save-and-reuse?platform=ios&ui=payment-sheet&uikit-swiftui=swiftui
@weary wave Oh very nice did not see this part of the docks..Thanks for this helpful resource 🙌
@weary wave Quick question, Do I HAVE TO use the native PaymentSheet class or can I supply my own native view? Integrate Stripe’s prebuilt payment UI into the checkout of your app with the PaymentSheet class.
PaymentSheet is our recommended approach, you just need to pass in the customerId and the EphemeralKeySecret to it, the saved payment method will be attached to the customer.