#edutomesco

1 messages · Page 1 of 1 (latest)

bronze pelicanBOT
gilded copper
#

Hi! Let me help you with this.

#

Could you please share the Checkout Session ID/URL?

graceful notch
#

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

gilded copper
#

I see the address I updated on this Customer, but not the name

graceful notch
#

exactly

#

But I'm passing the "Name on card" field too

gilded copper
#

Where are you typing in the name exactly?

graceful notch
gilded copper
#

I was able to update the name with the same settings locally.

graceful notch
#

Name on card field

graceful notch
gilded copper
#

Yes

graceful notch
#

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

gilded copper
#

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.

graceful notch
#

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

gilded copper
#

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.

bronze pelicanBOT
tender quiver
#

👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

graceful notch
tender quiver
#

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

gilded copper
#

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.

graceful notch
#

So I contact with the support anyway?

#

I can do anything more in my end=

#

?

#

just wait no?

tender quiver
#

yes please do contact support, and tell us when you do, and someone will follow up with you

gilded copper
#

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.

graceful notch
#

so yes maybe with metada will work

#

but could be nice to don't need to do it like that