#edutomesco
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Are you trying to prefill the checkout page fields?
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
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.
NP! ๐ Happy to help
one more question, is there any way to find a customer filtering by the email?