#edutomesco
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
Could you please share the Checkout Session ID/URL?
cs_test_b1GkRn3c5klMvXoCmIgFxbPWSt85TqMyYnVCz2prRfcc119YAvKdOa1CD0
Nam on card is the name field on the checkout page
I see in the event checkout session that the name field comes null
I see the address I updated on this Customer, but not the name
Where are you typing in the name exactly?
here
I was able to update the name with the same settings locally.
Name on card field
putting the name in the Name on card field?
Yes
and why it's not working for me
because then you don't need to do anything right?
or I need to receive a webhook and then manually updated?
this is my code for setting the checkout:
checkoutParams := &stripe.CheckoutSessionParams{
Customer: stripe.String(customerID),
CustomerUpdate: &stripe.CheckoutSessionCustomerUpdateParams{
Address: stripe.String("auto"),
Name: stripe.String("auto"),
},
Mode: stripe.String(string(stripe.CheckoutSessionModeSubscription)),
AllowPromotionCodes: stripe.Bool(true),
BillingAddressCollection: stripe.String(string(stripe.CheckoutSessionBillingAddressCollectionRequired)),
AutomaticTax: &stripe.CheckoutSessionAutomaticTaxParams{
Enabled: stripe.Bool(true),
},
PhoneNumberCollection: &stripe.CheckoutSessionPhoneNumberCollectionParams{
Enabled: stripe.Bool(false),
},
LineItems: lineItems,
ClientReferenceID: stripe.String(userID.ID()),
SuccessURL: stripe.String(successURL),
CancelURL: stripe.String(cancelURL),
}
checkout, err := session.New(checkoutParams)
if err != nil {
err = httpError.ErrUnexpected(err)
s.logger.Info(ctx).Err(err).Msg("")
return internal.CheckoutSession{}, err
}
and it's strange because the address it's doing good
No, you shouldn't need to do anything extra, so I am not sure why it's not working. I'll need to take a closer look.
did you try first creating an empty user and then updating this with the name?
One thing is that when I created the user first I associated a vat id, idk if that could affect
I will try to reproduce now.
Looks like it might be a bug and/or Stripe Tax related. I will report this to the relevant team.
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
Just to know if this will be fixed? and aprox when it could be?
I prefer you contact us on https://support.stripe.com/contact/email?topic=api_integration and mention the issue, and that you were speaking with vanya on discord
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
this way someone would pick the ticket and would follow up with you asynchronously
please do let us know when you send the email so we could follow up interanlly and share some more context
Hi @graceful notch, just managed to reproduce, it was indeed the tax_id. I am reporting the bug to the relevant team. Please follow my colleague's suggestion and we will keep you updated.
So I contact with the support anyway?
I can do anything more in my end=
?
just wait no?
yes please do contact support, and tell us when you do, and someone will follow up with you
If you can skip adding the Tax ID, it will work. If you only store it for non-Stripe-related purposes, you could also use Customer.metadata, as a workaround.
I need to put the tax-id
so yes maybe with metada will work
but could be nice to don't need to do it like that