#jason-payment-ios
1 messages · Page 1 of 1 (latest)
Hey there
Yeah you are looking for the FlowController. The docs for that are here: https://stripe.com/docs/payments/accept-a-payment?platform=ios&ui=payment-sheet#ios-flowcontroller
HI bismark, thanks for your reply! That's not what I'm looking for; that's what I already found.
I'm looking for something which is NOT accepting payments. Rather, viewing saved cards.
Ah sorry, misread. In that case you just want to use PaymentSheet with a SetupIntent: https://stripe.com/docs/payments/save-and-reuse. When you pass in a Customer ID and Ephemeral Key to PaymentSheet it will show saved payment methods (as well as allow the customer to add a new Payment Method)
There is no way to just present a UI that is only for viewing saved cards
Yeah, we are using PaymentSheet right now. But I do recall seeing somewhere different re-usable UI elements for viewing cards. The PaymentSheet is not going to suit our purposes long-term.
and also different UI elements for editing, adding, deleting cards. Surely the PaymentSheet is not the only player on the block.
No sorry, we really don't have anything like this in our iOS SDK unless you build it yourself.
Feel free to take a look through our SDK reference: https://stripe.dev/stripe-ios/docs/index.html
I appreciate your answer. I'm new to Stripe so am still learning the ropes. Are you a Stripe employee? Sorry to dis-trust your answer but I do recall seeing something else but am having trouble locating it.
The PaymentSheet uses square components with rounded corners that show saved cards. There is also a more elongated rectangular component that shows the last 4 digits of the card . Something more like this:
I am a Stripe employee, yes.
The screenshot you just provided is not from a Stripe Component
Where is that screenshot from?
I took it from this page: https://stripe.com/docs/payments/more-payment-scenarios
Note: the screenshot is not exactly what I was looking for, but is similar.
None of our flows provide you with a UI to display saved payment methods. The only thing that does this is the Customer Portal which is used as a UI for Subscription management.
The only other one that does that is Payment Sheet, but it does it while having the option to collect a new PaymentMethod
All other instances of saved payment methods being displayed is due to that UI being built by the developer.
This is from the sample XCode project. It's called a "Payment Option Picker"
Hmm okay thank you for pushing. I'm not an iOS dev and am not currently aware of the ability to do this but let me check with a colleague to make sure.
That sounds like STPPaymentOptionsViewController actually (https://stripe.dev/stripe-ios/docs/Classes/STPPaymentOptionsViewController.html)
🙏
Sorry for jumping to conclusions. I have never seen that UI before
Like I said, will double check
Understood. Thank-you.
jason-payment-ios
@silk pine okay that seems like the right class