#Mathieu-checkoutsession

1 messages · Page 1 of 1 (latest)

median nest
#

Hi! Can you clarify what you mean by "set the name of the payment method on the payment form"?

uneven fox
#

I'm talking about the card holder name

#

this field is empty compare to the email which is set by the customer email

#

can't do the same with name ? set it with the customer name by default but leave it editable so that user can still change it if he wants to ?

median nest
#

Got it! Unfortunately this field cannot be set programatically.
Note that this is not the customer's name, but the name associated with the payment method, which may be different.

uneven fox
#

ok got it

#

and also, what are the best practice with session cancellation/retaking session ? is it best to retrieve an existing one from the customer or to recreate a new one ?

median nest
#

That's completely up to you, but there's no downside of creating a new session.

uneven fox
#

ok i'm asking this because i saw on the documentation api that there are expire, list and retrieve action for this ressource. I was wondering, since creating a new session everytime works well, what use case/benefit could we have from theses actions ?

uneven fox
uneven fox
uneven fox
icy light
#

Hi there 👋 jumping in as soma needed to step away

icy light
uneven fox
#

Hi @icy light thanks for your response, at least if as soma said it has no downside to create new one each time, i don't think we are gonna use those actions for now and maybe incorporate them later on with practice.