#ghost-ios-paymentmethods
1 messages · Page 1 of 1 (latest)
ghost-ios-paymentmethods
Hey @quartz glade I don't think we have a specific component for this today. Let me ask my team in case I missed something obvious
Sure
yeah my team confirmed you do need to build this yourself. You'd track all the PaymentMethods on that Customer using STPCustomerContext for example and render the list in your own UI to let them manage those. You would use SetupIntent to collect a new one
Alternatively you could always redirect to the CustomerPortal in a webview to let them manage those thereThey
Do you have any direct links regarding STPCustomerContext that I can look into?
The only issue is, when I use setupIntent, it brings up the sheet which once again lists all the payment methods. So from our app, they’d have to click “add” which opens up the sheet, then they’d have to press “add” again. Is there a way to directly open up the new card details method?
Any guide for this process ?
Hello 👋
We have a doc here that shows you how you can use STPCustomerContext
https://stripe.com/docs/mobile/ios/basic#set-up-customer-context
If you want to use prebuilt UI to manage payment methods, the SDK offers STPPaymentOptionsViewController which I think is what you're looking for
https://stripe.com/docs/mobile/ios/basic#handle-payment-method
@quartz glade lmk if that helps or if you have any follow ups
You'll find more information about the class itself on iOS Ref page here
https://stripe.dev/stripe-ios/stripe/documentation/stripe/stppaymentoptionsviewcontroller
Thank you, I’ll take a look at all this
👍