#edutomesco

1 messages ยท Page 1 of 1 (latest)

pliant gobletBOT
celest adder
#

Hello ๐Ÿ‘‹
Are you trying to prefill the checkout page fields?

south pier
#

no

#

I just create a customer before doing the checkout

#

just with the taxID info because of my business model

#

then I pass this customer to the checkout, and so I want that the address and the name that the user puts in the checkout is updated to the user

#

I'm achieving that with the address setting the CustomerUpdate: &stripe.CheckoutSessionCustomerUpdateParams{
Address: stripe.String("auto"),
},

#

but with the Name I don't have idea on how to do it

celest adder
#

Ah gotcha. I understand now. Unfortunately, there's no way to automatically update the name.

You can listen to checkout.session.completed webhook event and update the customer name by calling the API manually.

south pier
#

Okey!

#

thank you

celest adder
#

NP! ๐Ÿ™‚ Happy to help

south pier
#

one more question, is there any way to find a customer filtering by the email?