#phillip9345

1 messages ยท Page 1 of 1 (latest)

abstract forumBOT
delicate hound
#

I'm afraid that there's no options to add custom field in AddressElement

vernal aspen
#

@delicate hound Thanks for the fast reply. Is it however possible to store the company name? Because I saw other Stripe forms (checkout page) where I was able to put in my company name

delicate hound
vernal aspen
#

will it enable this checkbox? "Buy as a company"

delicate hound
#

No, this form is only for Checkout page and won't be availble in PaymentElement

vernal aspen
#

Alright thank you

abstract forumBOT
vernal aspen
#

Sorry, I still have a question regarding this. The tax_id_data does not show a company name.

I want to add my own "company name" input and make a separat API call to attach the company name to the customer... There must be some company_name property in the API, no?

If the checkout element stores the company_name that should also be possible with the API?

Why I need this: I want to show the company name on the invoice

hollow tusk
#

๐Ÿ‘‹ Taking over this thread, catching up now

#

Are you using Invoice product, direct payment with Payment Element or Checkout Session?

vernal aspen
#

Hey @hollow tusk I created a subscription product and I collect the customer data with the Address and Payment Element

abstract forumBOT
hollow tusk
#

Can you share an example request (req_xxx) how you set the Tax ID now?

vernal aspen
#

I don't do that at all at the moment...

This is my handleSubmit function

const { error, setupIntent: { payment_method } } = await stripe.value!.confirmSetup({
    elements: elements.value,
    redirect: 'if_required'
})

if (error) throw Error(error.message)

if (!payment_method) throw Error('No payment method returned')

paymentMethod.value = payment_method
// stripeUpdateCustomer: add name and address to customer
await stripeUpdateCustomer()
await stripeAttachPaymentMethod()

price.value = await stripeGetPriceById()
await stripeSubscribeUser()
frank vessel