#๐Ÿ‡ Aristochat

1 messages ยท Page 1 of 1 (latest)

somber wharfBOT
scarlet crow
#

Can you provide the request id?

valid moth
scarlet crow
#

I think you need to provide the token id as a string

valid moth
#

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

scarlet crow
#

Any reason you are using Card objects and not Payment Methods? Is this a legacy integration?

valid moth
#

We want the user to be able to add his card before even starting a payment

scarlet crow
#

Yeah, but Card objects are the old way of adding payment methods. The recommended approach now is to use payment method objects

valid moth
#

oh

#

I didn't see that in the API docs

scarlet crow
valid moth
#

sorry

scarlet crow
#

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

valid moth
#

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 ? ๐Ÿค”

scarlet crow
#

Is this a web or mobile integration? What sdk are you using?

valid moth
#

Mobile, we're using the flutter_stripe dart pub

scarlet crow
#

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

valid moth
#

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 ๐Ÿค”

scarlet crow
#

It's really just 2 steps

#

Recommend reading that guide I sent

valid moth
#

does adding a payment method to the customer requires some kind of 3DS ?

scarlet crow
#

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

valid moth
#

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

scarlet crow
#

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

valid moth
#

Let the user setup his card in his profile before doing any payment, like what Amazon or Uber does for example

scarlet crow
#

That's exactly what the guide is for

#

That would be a custom flow

valid moth
#

alright, I guess I'll have another read

scarlet crow
#

So it's up to you to build the ui

#

But the concepts are the same

valid moth
#

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 ๐Ÿ™‚

scarlet crow
#

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

valid moth
#

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

scarlet crow
#

It could be, yeah

valid moth
#

thank you duchess ๐Ÿ™‚

scarlet crow
#

No problem

#

The ios and android tabs might help then if it is just a wrapper on top of those libraries

valid moth
#

is there a way to get access to that chat archive so we can have a look later with my team ?

scarlet crow
#

You might can search for it in here. Threads aren't deleted but they are archived