#๐ Aristochat
1 messages ยท Page 1 of 1 (latest)
Can you provide the request id?
I think you need to provide the token id as a string
And how do I get that token id ?
In our payment flow, we would love to be able to let the user manages its card via our UI, so he should be able to add one (that get sent to you in his customer profile) so he can pay with it later
Any reason you are using Card objects and not Payment Methods? Is this a legacy integration?
We want the user to be able to add his card before even starting a payment
Yeah, but Card objects are the old way of adding payment methods. The recommended approach now is to use payment method objects
I recommend starting here for your usecase: https://stripe.com/docs/payments/save-and-reuse
sorry
No worries
Above link should get you started
But the newer, recommended flow is to use Payment Methods and then Payment Intents instead of Charges
so if I understand properly, I need to get his customer id, generate an ephemeral key that get sent to the client, and then your front SDK will handle the payment methods management ? ๐ค
Is this a web or mobile integration? What sdk are you using?
Mobile, we're using the flutter_stripe dart pub
Oh
That's a 3rd party library
So i'm not sure how that does things
But flow should be the same as above link
You'd want to use SetupIntents to save a payment method for later future usage
Then you charge the Payment Method generated from the SetupIntent (pm_123) via a PaymentIntent later
So we're actually not able to let the user input his card in a separate, custom UI without paying something ?
oh
more complex that I thought ๐ค
does adding a payment method to the customer requires some kind of 3DS ?
It could, but that's always up to the bank
So your integration should be prepared to handle it if the bank requires it for that payment method
I've looked through that guide a few hours ago, what I understand is that it requires us to move the user through an entire checkout process to save his card
Yeah but how else would you do it? You need to collect the details from the user somehow
There's tabs at the top of the guide. You can do it through a custom flow or via Stripe Checkout
Let the user setup his card in his profile before doing any payment, like what Amazon or Uber does for example
alright, I guess I'll have another read
yeah we actually want to build our own UI for the user to add/remove cards in his profile, and everything else would be managed by the UI components from the dart package
I just realized about the custom flow tab, thanks ๐
No problem
You're going to have to convert some steps to the flutter package you're using but I'm not familiar with that library since it's a 3rd party one, so can't help much with that unfortunately
No worries ๐
It looks like the library is well maintained
seems like a wrapper to the native android/ios official libraries
so should be fine
It could be, yeah
thank you duchess ๐
No problem
The ios and android tabs might help then if it is just a wrapper on top of those libraries
is there a way to get access to that chat archive so we can have a look later with my team ?
You might can search for it in here. Threads aren't deleted but they are archived