#Signup
1 messages · Page 1 of 1 (latest)
Can you share the checkout session ID or subscription ID?
sure - checkout_session_id="cs_test_a1Fv9WrgBs7a52lLGovvk71njTTHobnkYDs4AGcsVNamkDUxdmGvNmk1xD"
Thanks for sharing.
np
The name collected in Checkout Session refers to the name on the card. If the customer is created in advance, it will not populate the name to the customer object and will only store under the payment method (pm_xxx).
right. But I was hoping that there was a way to set the name of the Customer during the Checkout Session Create
I know I could retrieve the CheckoutSession at some point (for exmaple, during the webhook for checkout.session.completed) and then update the Customer object... but was hoping that there was a way to avoid the extra step?
For example, if I do not create the Customer before the CheckoutSession, then Stripe will create it for me and populate the name field. So I was hoping that there was some parameter I could set during the CheckoutSessionCreate that would update the "name" field of the Customer...?
Yes, this is possible
You can set customer_update.name: auto when creating a Checkout Session: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer_update-name
It will allow Checkout to save the name onto customer.name
oh that's exactly what i wanted - thank you so much!
No problem! Happy to help 😄