#PaulD
1 messages ยท Page 1 of 1 (latest)
Good question. I am unsure if that is possible on the frontend at the moment but will ask my colleagues for help here
Thank you!
Hello ๐
When you say you're using multistep process, do you mean you're using the flowcontroller instead?
https://stripe.com/docs/payments/save-and-reuse?platform=ios&ui=payment-sheet#ios-flowcontroller
If so, can you confirm what are you getting when presentPaymentOptions is called?
No, we're using our own payment screen, and we have a button to open the native payment sheet. So, first, I make a call to our server, it creates intent and returns necessary data (keys, etc.)
Then I use it to create PaymentSheet.Configuration() and once it's ready, I create PaymentSheet and present it. If the result of paymentSheet.present(from: viewController) { ... } is a success, I call STPAPIClient.shared.retrieveSetupIntent to get intent, and then we're using it for payment
Basically, this flow's start is similar to this example https://github.com/stripe/stripe-ios/blob/master/Example/PaymentSheet Example/PaymentSheet Example/PaymentSheet Example/ExampleSwiftUIPaymentSheet.swift
Ah okay! Have you looked into flowcontroller already?
https://stripe.com/docs/payments/save-and-reuse?platform=ios&ui=payment-sheet&uikit-swiftui=swiftui#ios-flowcontroller
It is specifically designed to allow you to complete payment in your own UI.
Thank you for the suggestion, I'll take a deeper look at FlowController. But I'm not sure if it will fit our design and flow, as we have a really complicated payment page with a bunch of options. And design won't be easy to change
If there is no way to detect cards removal with Payment Sheet, probably it will be better to live with the issue, as it doesn't often and doesn't break our flow.
Can you please confirm that payment sheet doesn't allow detection of card deletion on the client?
At the moment it does not unfortunately.
Thank you for your help!
NP! ๐ Happy to help
Please do add this to some feature request list for future ๐
Sure thing!