#PaulD

1 messages ยท Page 1 of 1 (latest)

balmy finchBOT
slow notch
#

Good question. I am unsure if that is possible on the frontend at the moment but will ask my colleagues for help here

wild crown
#

Thank you!

glass estuary
wild crown
#

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

glass estuary
wild crown
#

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?

glass estuary
#

At the moment it does not unfortunately.

wild crown
#

Thank you for your help!

glass estuary
#

NP! ๐Ÿ™‚ Happy to help

wild crown
#

Please do add this to some feature request list for future ๐Ÿ™‚

glass estuary
#

Sure thing!