#Signup

1 messages · Page 1 of 1 (latest)

halcyon hearthBOT
inner flume
#

Can you share the checkout session ID or subscription ID?

white ridge
#

sure - checkout_session_id="cs_test_a1Fv9WrgBs7a52lLGovvk71njTTHobnkYDs4AGcsVNamkDUxdmGvNmk1xD"

inner flume
#

Thanks for sharing.

white ridge
#

np

inner flume
#

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).

white ridge
#

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...?

inner flume
#

Yes, this is possible

#

It will allow Checkout to save the name onto customer.name

white ridge
#

oh that's exactly what i wanted - thank you so much!

inner flume
#

No problem! Happy to help 😄