#mzane42-react

1 messages · Page 1 of 1 (latest)

jolly fossil
#

Hi! I don't think you can remove that field from the Payment Element. Give me a few minutes to check.

delicate tusk
neon rivet
#

thanks @delicate tusk that's i'm looking for but how can i use elements.create, because my element in react is already created on mount under the hood, you think that we have to mount it manually to control the fields ?

#

@jolly fossil thanks too ! ^^

delicate tusk
#

Yeah, so you'd pass an options hash to that elements.create:

elements.create('payment', {
  fields: {
    billingDetails: {
      address: 'never'
    }
  }
})
neon rivet
#

yes !! it work

#

thanks @delicate tusk

delicate tusk
#

Sure, np!