#Rahul Maru

1 messages · Page 1 of 1 (latest)

modern edgeBOT
heady briar
#

Hi there!

#

If you plan to charge the customer in the future while they are on your website/application, use setup_future_usage: on_session. If the customer might not be on your website/app, then use setup_future_usage: off_session

sacred hatch
#

if i send this perameter in create payment intent api is it possible that it will return me the cards details while calling stripe.paymentMethods.list with that customerId

#

or not

heady briar
#

Yes once the card is set on the customer for future usage, you will be able to retrieve it

modern edgeBOT
sacred hatch
#

setup_future_usage: on_session. If the customer might not be on your website/app, then use setup_future_usage: off_session

so what value should i send here

#

what you recommend

red yoke
#

we recommend the one that makes sense for your business and use cases, as explained above

sacred hatch
#

we have ecom flow for where on checkout we are using stripe elements to make payment also we have a add card flow as well in that we have customerId and card token and we save the card in stripe with the help of card token and then we retrieve all the cards list using customerId now we want that we can retireve that cards as well which we used in stripe elements based on customerId

#

so what will be the best for us

red yoke
#

can't answer that for you really!

#

my colleague gave you a super clear answer, I can't phrase it any other way.

If you plan to charge the customer in the future while they are on your website/application, use setup_future_usage: on_session. If the customer might not be on your website/app, then use setup_future_usage: off_session

sacred hatch
#

ok last thing i can pass anything and i will get it while calling this api stripe.paymentMethods.list dosent matter on_session or off_session i will pass anyone from this right in setup_future_usage

red yoke
#

I'm sorry but I can't understand that English sentence.

#

I think you're asking if stripe.paymentMethods.list. returns all cards, regardless of which value of setup_future_usage was used when they were saved, and the answer to that question is yes, it does, those things are not related.

sacred hatch
#

ok great