#manish_53909

1 messages · Page 1 of 1 (latest)

echo mirageBOT
odd thistle
#

You need to specify the metadata at customer level and not Checkout Level (when using checkourt.session.create)

manic ice
#

using stripe checkout session create

manic ice
odd thistle
#

You can but those metadata will be linked to the Checkout Session object and not the customer object

manic ice
#

i want to link those meta data to customer object

odd thistle
#

You can't achieve that via checkourt.session.create, what you can do is to create the Customer object first with its metadata

#

and then create the checkout session

#

or keep the metadata at Checkout Session level

#

after completion, you copy/past the Checkout Session's metadata to the Customer object

manic ice
#

i will get the meta data at checkout session completed response

odd thistle
#

Yes that's an option too.

manic ice
#

after adding meta data to customer object . i will get the meta data in every webhook object?

odd thistle
#

Only for customer related webhooks customer.*

manic ice
#

in subscription related webhook?

odd thistle
#

no

#

you need to retreive the Customer by Id and then you'll get its metadata (an extra API call by your backend)