#skandaaryal_29085

1 messages · Page 1 of 1 (latest)

strange joltBOT
bright carbon
#

it would be even better if we could list all of the cards we saved using setup intent here

open charm
#

Hi there, I'm struggling to understand this use case. Why do you want to show list of saved cards in a setup flow?

bright carbon
#

so that user can choose among the cards he had saved previously during checkout

open charm
#

So you want to pre-fill the payment mode checkout page with previously used payment method for your return customers, am I right?

bright carbon
#

also when a new card is saved, the latest one overrides the previous one now! we need to allow the user to choose his default card (from our UI) and stripe should reflect that card during checkout

#

i have disabled link as need to handle it only through stripe

open charm
bright carbon
#

i mean in the screenshot attached

open charm
#

I've already shared you the API reference, have you got a chance to try it out yourself?

bright carbon
#

yeah

#

but that doesn't help in our case

open charm
#

why?

bright carbon
#

@open charm we need to make a certain card default from the UI! something like this! and the chosen one should appear during the checkout as in this screenshot! this is the only requirement for now please ignore every other things

open charm
#

I've already answered your question and recommended a solution, and it's entirely up you whether to take my advice or not.

bright carbon
open charm
#

What's the customer session ID?

#

Btw there's no need to tag me on every message that you type

bright carbon
#

cus_Oa2hDIY9pRUYti

open charm
#

No, it's a customer ID, I want to see the ID of checkout session that you created

open charm
#

I can see the payment method is already pre-filled

bright carbon
#

yeah it's always latest setup intent! even when there are multiple intents!

#

we need user to be able to choose from a variety of cards here

#

and it should be reflected in the screenshot you shared

open charm
#

That's the expected behaviour, the Checkout page will only use the last used payment method.

#

So that your customer can choose a payment method from Link

bright carbon
#

yeah! but we need to manage it ourselves 😦

#

we need to make a certain pament method default from our UI

#

and it should be shown during checkout

open charm
#

Then I'm afraid this kind of customization is not available in Checkout

bright carbon
#

what is the source of Pay With.. in the screenshot you shared?

#

we can save multiple cards in stripe

#

but the latest saved is always shown over there

#

just need to change which one of the saved to show there

open charm
#

Yup, as I explained, that's the behaivour of checkout page

bright carbon
#

thank you Jack for your help