#Siva_K-checkout-customer-meta
1 messages · Page 1 of 1 (latest)
Thank you for the response
Are you passing the customer parameter, or is Checkout creating a new customer?
We have a scenario that needs to set some additional parameters for customers
creating new customer in checkout
then the options are mainly:
- instead, create a Customer directly with metadata and pass that Customer to the Session https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer
- after the payment when you're handling the webhook, you can update the Customer object that the Session created to set metadata on that Customer
So, we do not have the option to set the metadata for customers in the checkout session. right?
the two options are the ones above, that's it really
Ok, thank you
if we set the metadata for the session, will those copy to other objects or they will stay at the checkout object itself?
they stay on the Checkout object itself
in addition, there is for example payment_intent_data[metadata] that applies metadata to the PaymentIntent it would create in a one time payment, for example, or subscription_data[metadata] for those
can we pass the metadata to the subscription?
ok